Skip to content

Commit 11c63e3

Browse files
committed
contrib: testgen: import OP_* constants from test framework
1 parent 7d755bb commit 11c63e3

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

contrib/testgen/gen_key_io_test_vectors.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
sys.path.append(os.path.join(os.path.dirname(__file__), '../../test/functional'))
2020

21+
from test_framework.script import OP_0, OP_1, OP_2, OP_3, OP_16, OP_DUP, OP_EQUAL, OP_EQUALVERIFY, OP_HASH160, OP_CHECKSIG # noqa: E402
2122
from test_framework.segwit_addr import bech32_encode, decode_segwit_address, convertbits, CHARSET, Encoding # noqa: E402
2223

2324
# key types
@@ -32,16 +33,6 @@
3233
PRIVKEY_REGTEST = 239
3334

3435
# script
35-
OP_0 = 0x00
36-
OP_1 = 0x51
37-
OP_2 = 0x52
38-
OP_3 = 0x53
39-
OP_16 = 0x60
40-
OP_DUP = 0x76
41-
OP_EQUAL = 0x87
42-
OP_EQUALVERIFY = 0x88
43-
OP_HASH160 = 0xa9
44-
OP_CHECKSIG = 0xac
4536
pubkey_prefix = (OP_DUP, OP_HASH160, 20)
4637
pubkey_suffix = (OP_EQUALVERIFY, OP_CHECKSIG)
4738
script_prefix = (OP_HASH160, 20)

0 commit comments

Comments
 (0)