aboutsummaryrefslogtreecommitdiff
path: root/contrib/testgen
diff options
context:
space:
mode:
authorSebastian Falbesoner <sebastian.falbesoner@gmail.com>2022-03-15 22:24:28 +0100
committerSebastian Falbesoner <sebastian.falbesoner@gmail.com>2022-04-05 19:51:40 +0200
commit11c63e374d058d3bde64a725068d29c874950b45 (patch)
tree6e8f9bab39d80c01b6a4e634ed8c2abff7f5e672 /contrib/testgen
parent7d755bb31cd58099cd97b604e04a6a4bb99cd2a9 (diff)
downloadbitcoin-11c63e374d058d3bde64a725068d29c874950b45.tar.xz
contrib: testgen: import OP_* constants from test framework
Diffstat (limited to 'contrib/testgen')
-rwxr-xr-xcontrib/testgen/gen_key_io_test_vectors.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/contrib/testgen/gen_key_io_test_vectors.py b/contrib/testgen/gen_key_io_test_vectors.py
index fd578fede7..c69225c326 100755
--- a/contrib/testgen/gen_key_io_test_vectors.py
+++ b/contrib/testgen/gen_key_io_test_vectors.py
@@ -18,6 +18,7 @@ import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '../../test/functional'))
+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
from test_framework.segwit_addr import bech32_encode, decode_segwit_address, convertbits, CHARSET, Encoding # noqa: E402
# key types
@@ -32,16 +33,6 @@ PRIVKEY_TEST = 239
PRIVKEY_REGTEST = 239
# script
-OP_0 = 0x00
-OP_1 = 0x51
-OP_2 = 0x52
-OP_3 = 0x53
-OP_16 = 0x60
-OP_DUP = 0x76
-OP_EQUAL = 0x87
-OP_EQUALVERIFY = 0x88
-OP_HASH160 = 0xa9
-OP_CHECKSIG = 0xac
pubkey_prefix = (OP_DUP, OP_HASH160, 20)
pubkey_suffix = (OP_EQUALVERIFY, OP_CHECKSIG)
script_prefix = (OP_HASH160, 20)