@btc-vision/bitcoin 6.4.10 → 6.4.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babelrc +4 -4
- package/.mocharc.json +13 -13
- package/.prettierrc.json +12 -12
- package/CHANGELOG.md +403 -403
- package/CONTRIBUTING.md +83 -83
- package/LICENSE +21 -21
- package/README.md +201 -201
- package/cjs/package.json +3 -3
- package/gulpfile.js +42 -42
- package/package.json +150 -150
- package/src/bip66.ts +107 -107
- package/src/block.ts +233 -233
- package/src/bufferutils.ts +188 -188
- package/src/crypto.ts +108 -108
- package/src/ecc_lib.ts +94 -94
- package/src/hooks/AdvancedSignatureManager.ts +104 -104
- package/src/hooks/SignatureManager.ts +84 -84
- package/src/index.ts +105 -105
- package/src/merkle.ts +31 -31
- package/src/opcodes.ts +280 -280
- package/src/payments/bip341.ts +140 -140
- package/src/payments/embed.ts +61 -61
- package/src/payments/index.ts +172 -172
- package/src/payments/lazy.ts +28 -28
- package/src/payments/p2ms.ts +156 -156
- package/src/payments/p2op.ts +195 -195
- package/src/payments/p2pk.ts +93 -93
- package/src/payments/p2pkh.ts +214 -214
- package/src/payments/p2tr.ts +309 -309
- package/src/psbt/bip371.ts +441 -441
- package/src/push_data.ts +97 -97
- package/src/script.ts +247 -247
- package/src/script_number.ts +72 -72
- package/src/script_signature.ts +91 -91
- package/src/transaction.ts +656 -656
- package/test/address.spec.ts +155 -155
- package/test/bitcoin.core.spec.ts +212 -212
- package/test/block.spec.ts +171 -171
- package/test/bufferutils.spec.ts +450 -450
- package/test/crypto.spec.ts +49 -49
- package/test/fixtures/address.json +329 -329
- package/test/fixtures/block.json +148 -148
- package/test/fixtures/bufferutils.json +102 -102
- package/test/fixtures/core/README.md +26 -26
- package/test/fixtures/core/base58_encode_decode.json +50 -50
- package/test/fixtures/core/base58_keys_invalid.json +152 -152
- package/test/fixtures/core/base58_keys_valid.json +452 -452
- package/test/fixtures/core/blocks.json +27 -27
- package/test/fixtures/core/sig_canonical.json +7 -7
- package/test/fixtures/core/sig_noncanonical.json +33 -33
- package/test/fixtures/core/sighash.json +3505 -3505
- package/test/fixtures/core/tx_valid.json +2023 -2023
- package/test/fixtures/crypto.json +43 -43
- package/test/fixtures/ecdsa.json +217 -217
- package/test/fixtures/ecpair.json +141 -141
- package/test/fixtures/embed.json +108 -108
- package/test/fixtures/p2ms.json +434 -434
- package/test/fixtures/p2pk.json +179 -179
- package/test/fixtures/p2pkh.json +276 -276
- package/test/fixtures/p2sh.json +508 -508
- package/test/fixtures/p2tr.json +1198 -1198
- package/test/fixtures/p2wpkh.json +290 -290
- package/test/fixtures/p2wsh.json +489 -489
- package/test/fixtures/psbt.json +924 -924
- package/test/fixtures/script.json +465 -465
- package/test/fixtures/script_number.json +225 -225
- package/test/fixtures/signature.json +140 -140
- package/test/fixtures/transaction.json +916 -916
- package/test/integration/_regtest.ts +6 -6
- package/test/integration/addresses.spec.ts +142 -142
- package/test/integration/bip32.spec.ts +130 -130
- package/test/integration/blocks.spec.ts +28 -28
- package/test/integration/cltv.spec.ts +241 -241
- package/test/integration/csv.spec.ts +452 -452
- package/test/integration/payments.spec.ts +110 -110
- package/test/integration/taproot.spec.ts +663 -663
- package/test/integration/transactions.spec.ts +668 -668
- package/test/payments.spec.ts +114 -114
- package/test/payments.utils.ts +165 -165
- package/test/psbt.spec.ts +1285 -1285
- package/test/script.spec.ts +186 -186
- package/test/script_number.spec.ts +26 -26
- package/test/script_signature.spec.ts +66 -66
- package/test/transaction.spec.ts +337 -337
- package/test/ts-node-register.js +7 -7
- package/test/tsconfig.json +48 -48
- package/test/types.spec.ts +53 -53
- package/tsconfig.base.json +27 -27
- package/tsconfig.json +19 -19
- package/tsconfig.webpack.json +18 -18
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/.ready +0 -0
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/.release-please-manifest.json +0 -3
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/CHANGELOG.md +0 -962
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/CONTRIBUTING.md +0 -34
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/LICENSE +0 -24
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/README.md +0 -273
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/SECURITY.md +0 -2
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/addon.gypi +0 -204
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/bin/node-gyp.js +0 -138
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/.release-please-manifest.json +0 -3
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/LICENSE +0 -28
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/data/ninja/build.ninja +0 -4
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/data/win/large-pdb-shim.cc +0 -12
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/docs/GypVsCMake.md +0 -116
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/docs/Hacking.md +0 -46
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/docs/InputFormatReference.md +0 -1080
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/docs/LanguageSpecification.md +0 -430
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/docs/README.md +0 -27
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/docs/Testing.md +0 -450
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/docs/UserDocumentation.md +0 -965
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/gyp +0 -8
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/gyp.bat +0 -5
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/gyp_main.py +0 -45
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +0 -365
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py +0 -206
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +0 -1272
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +0 -1547
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +0 -59
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +0 -153
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py +0 -271
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +0 -574
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +0 -692
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/common.py +0 -711
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +0 -171
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +0 -169
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +0 -113
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py +0 -55
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py +0 -0
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py +0 -804
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +0 -1173
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py +0 -1318
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +0 -127
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +0 -103
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +0 -461
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py +0 -89
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +0 -57
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +0 -2745
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +0 -3976
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +0 -44
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +0 -2964
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +0 -67
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +0 -1391
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +0 -25
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/input.py +0 -3115
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +0 -98
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +0 -771
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +0 -1260
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py +0 -174
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py +0 -61
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +0 -373
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +0 -1938
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +0 -53
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py +0 -302
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +0 -3198
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py +0 -65
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/packaging/LICENSE +0 -3
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.APACHE +0 -177
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.BSD +0 -23
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/packaging/__init__.py +0 -15
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/packaging/_elffile.py +0 -108
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/packaging/_manylinux.py +0 -252
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/packaging/_musllinux.py +0 -83
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/packaging/_parser.py +0 -359
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/packaging/_structures.py +0 -61
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/packaging/_tokenizer.py +0 -192
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/packaging/markers.py +0 -252
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +0 -825
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/packaging/py.typed +0 -0
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/packaging/requirements.py +0 -90
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/packaging/specifiers.py +0 -1030
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/packaging/tags.py +0 -553
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/packaging/utils.py +0 -172
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pylib/packaging/version.py +0 -563
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/pyproject.toml +0 -120
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/release-please-config.json +0 -11
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/gyp/test_gyp.py +0 -261
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/lib/Find-VisualStudio.cs +0 -250
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/lib/build.js +0 -227
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/lib/clean.js +0 -15
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/lib/configure.js +0 -328
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/lib/create-config-gypi.js +0 -150
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/lib/download.js +0 -39
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/lib/find-node-directory.js +0 -63
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/lib/find-python.js +0 -310
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/lib/find-visualstudio.js +0 -590
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/lib/install.js +0 -415
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/lib/list.js +0 -26
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/lib/log.js +0 -168
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/lib/node-gyp.js +0 -188
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/lib/process-release.js +0 -146
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/lib/rebuild.js +0 -12
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/lib/remove.js +0 -43
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/lib/util.js +0 -81
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/macOS_Catalina_acid_test.sh +0 -21
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/package.json +0 -51
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/release-please-config.json +0 -40
- package/.yarn/unplugged/node-gyp-npm-10.2.0-cad1109948/node_modules/node-gyp/src/win_delay_load_hook.cc +0 -39
- package/browser/ops.d.ts +0 -126
- package/build/ops.d.ts +0 -126
- package/build/ops.js +0 -127
- package/coverage/tmp/coverage-31752-1735543485354-0.json +0 -1
- package/coverage/tmp/coverage-59920-1735543484555-0.json +0 -1
- package/coverage/tmp/coverage-66252-1735543483919-0.json +0 -1
- package/coverage/tmp/coverage-68440-1735543485236-0.json +0 -1
- package/coverage/tmp/coverage-70588-1735543484426-0.json +0 -1
- package/coverage/tmp/coverage-79292-1735543485296-0.json +0 -1
- package/coverage/tmp/coverage-80212-1735543483980-0.json +0 -1
package/test/fixtures/p2sh.json
CHANGED
|
@@ -1,508 +1,508 @@
|
|
|
1
|
-
{
|
|
2
|
-
"valid": [
|
|
3
|
-
{
|
|
4
|
-
"description": "p2sh-*, out (from address)",
|
|
5
|
-
"arguments": {
|
|
6
|
-
"address": "3GETYP4cuSesh2zsPEEYVZqnRedwe4FwUT"
|
|
7
|
-
},
|
|
8
|
-
"options": {},
|
|
9
|
-
"expected": {
|
|
10
|
-
"name": "p2sh",
|
|
11
|
-
"hash": "9f840a5fc02407ef0ad499c2ec0eb0b942fb0086",
|
|
12
|
-
"output": "OP_HASH160 9f840a5fc02407ef0ad499c2ec0eb0b942fb0086 OP_EQUAL",
|
|
13
|
-
"redeem": null,
|
|
14
|
-
"input": null,
|
|
15
|
-
"witness": null
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"description": "p2sh-*, out (from hash)",
|
|
20
|
-
"arguments": {
|
|
21
|
-
"hash": "9f840a5fc02407ef0ad499c2ec0eb0b942fb0086"
|
|
22
|
-
},
|
|
23
|
-
"expected": {
|
|
24
|
-
"name": "p2sh",
|
|
25
|
-
"address": "3GETYP4cuSesh2zsPEEYVZqnRedwe4FwUT",
|
|
26
|
-
"output": "OP_HASH160 9f840a5fc02407ef0ad499c2ec0eb0b942fb0086 OP_EQUAL",
|
|
27
|
-
"redeem": null,
|
|
28
|
-
"input": null,
|
|
29
|
-
"witness": null
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"description": "p2sh-*, out (from output)",
|
|
34
|
-
"arguments": {
|
|
35
|
-
"output": "OP_HASH160 9f840a5fc02407ef0ad499c2ec0eb0b942fb0086 OP_EQUAL"
|
|
36
|
-
},
|
|
37
|
-
"expected": {
|
|
38
|
-
"name": "p2sh",
|
|
39
|
-
"address": "3GETYP4cuSesh2zsPEEYVZqnRedwe4FwUT",
|
|
40
|
-
"hash": "9f840a5fc02407ef0ad499c2ec0eb0b942fb0086",
|
|
41
|
-
"redeem": null,
|
|
42
|
-
"input": null,
|
|
43
|
-
"witness": null
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"description": "p2sh-p2pkh, out (from redeem)",
|
|
48
|
-
"arguments": {
|
|
49
|
-
"redeem": {
|
|
50
|
-
"address": "this is P2PKH context, unknown and ignored by P2SH",
|
|
51
|
-
"output": "OP_DUP OP_HASH160 c30afa58ae0673b00a45b5c17dff4633780f1400 OP_EQUALVERIFY OP_CHECKSIG"
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
"expected": {
|
|
55
|
-
"name": "p2sh",
|
|
56
|
-
"address": "3GETYP4cuSesh2zsPEEYVZqnRedwe4FwUT",
|
|
57
|
-
"hash": "9f840a5fc02407ef0ad499c2ec0eb0b942fb0086",
|
|
58
|
-
"output": "OP_HASH160 9f840a5fc02407ef0ad499c2ec0eb0b942fb0086 OP_EQUAL",
|
|
59
|
-
"input": null,
|
|
60
|
-
"witness": null
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"description": "p2sh-p2wpkh, out (from redeem)",
|
|
65
|
-
"arguments": {
|
|
66
|
-
"redeem": {
|
|
67
|
-
"hash": "this is P2WPKH context, unknown and ignored by P2SH",
|
|
68
|
-
"output": "OP_0 c30afa58ae0673b00a45b5c17dff4633780f1400"
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
"expected": {
|
|
72
|
-
"name": "p2sh",
|
|
73
|
-
"address": "325CuTNSYmvurXaBmhNFer5zDkKnDXZggu",
|
|
74
|
-
"hash": "0432515d8fe8de31be8207987fc6d67b29d5e7cc",
|
|
75
|
-
"output": "OP_HASH160 0432515d8fe8de31be8207987fc6d67b29d5e7cc OP_EQUAL",
|
|
76
|
-
"input": null,
|
|
77
|
-
"witness": null
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"description": "p2sh-p2pk, out (from redeem)",
|
|
82
|
-
"arguments": {
|
|
83
|
-
"redeem": {
|
|
84
|
-
"output": "03e15819590382a9dd878f01e2f0cbce541564eb415e43b440472d883ecd283058 OP_CHECKSIG",
|
|
85
|
-
"pubkey": "this is P2WPKH context, unknown and ignored by P2SH"
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
"expected": {
|
|
89
|
-
"name": "p2sh",
|
|
90
|
-
"address": "36TibC8RrPB9WrBdPoGXhHqDHJosyFVtVQ",
|
|
91
|
-
"hash": "3454c084887afe854e80221c69d6282926f809c4",
|
|
92
|
-
"output": "OP_HASH160 3454c084887afe854e80221c69d6282926f809c4 OP_EQUAL",
|
|
93
|
-
"input": null,
|
|
94
|
-
"witness": null
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
"description": "p2sh-p2pkh, in and out (from redeem)",
|
|
99
|
-
"arguments": {
|
|
100
|
-
"redeem": {
|
|
101
|
-
"output": "OP_DUP OP_HASH160 c30afa58ae0673b00a45b5c17dff4633780f1400 OP_EQUALVERIFY OP_CHECKSIG",
|
|
102
|
-
"input": "3045022100e4fce9ec72b609a2df1dc050c20dcf101d27faefb3e686b7a4cb067becdd5e8e022071287fced53806b08cf39b5ad58bbe614775b3776e98a9f8760af0d4d1d47a9501 03e15819590382a9dd878f01e2f0cbce541564eb415e43b440472d883ecd283058"
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
"expected": {
|
|
106
|
-
"name": "p2sh",
|
|
107
|
-
"address": "3GETYP4cuSesh2zsPEEYVZqnRedwe4FwUT",
|
|
108
|
-
"hash": "9f840a5fc02407ef0ad499c2ec0eb0b942fb0086",
|
|
109
|
-
"output": "OP_HASH160 9f840a5fc02407ef0ad499c2ec0eb0b942fb0086 OP_EQUAL",
|
|
110
|
-
"input": "3045022100e4fce9ec72b609a2df1dc050c20dcf101d27faefb3e686b7a4cb067becdd5e8e022071287fced53806b08cf39b5ad58bbe614775b3776e98a9f8760af0d4d1d47a9501 03e15819590382a9dd878f01e2f0cbce541564eb415e43b440472d883ecd283058 76a914c30afa58ae0673b00a45b5c17dff4633780f140088ac",
|
|
111
|
-
"witness": []
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"description": "p2sh-p2wpkh, in and out (from redeem w/ witness)",
|
|
116
|
-
"arguments": {
|
|
117
|
-
"redeem": {
|
|
118
|
-
"output": "OP_0 c30afa58ae0673b00a45b5c17dff4633780f1400",
|
|
119
|
-
"input": "",
|
|
120
|
-
"witness": [
|
|
121
|
-
"3045022100e4fce9ec72b609a2df1dc050c20dcf101d27faefb3e686b7a4cb067becdd5e8e022071287fced53806b08cf39b5ad58bbe614775b3776e98a9f8760af0d4d1d47a9501",
|
|
122
|
-
"03e15819590382a9dd878f01e2f0cbce541564eb415e43b440472d883ecd283058"
|
|
123
|
-
]
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
"expected": {
|
|
127
|
-
"name": "p2sh",
|
|
128
|
-
"address": "325CuTNSYmvurXaBmhNFer5zDkKnDXZggu",
|
|
129
|
-
"hash": "0432515d8fe8de31be8207987fc6d67b29d5e7cc",
|
|
130
|
-
"output": "OP_HASH160 0432515d8fe8de31be8207987fc6d67b29d5e7cc OP_EQUAL",
|
|
131
|
-
"input": "0014c30afa58ae0673b00a45b5c17dff4633780f1400",
|
|
132
|
-
"witness": [
|
|
133
|
-
"3045022100e4fce9ec72b609a2df1dc050c20dcf101d27faefb3e686b7a4cb067becdd5e8e022071287fced53806b08cf39b5ad58bbe614775b3776e98a9f8760af0d4d1d47a9501",
|
|
134
|
-
"03e15819590382a9dd878f01e2f0cbce541564eb415e43b440472d883ecd283058"
|
|
135
|
-
]
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
"description": "p2sh-p2pk, in and out (from input)",
|
|
140
|
-
"arguments": {
|
|
141
|
-
"input": "3045022100e4fce9ec72b609a2df1dc050c20dcf101d27faefb3e686b7a4cb067becdd5e8e022071287fced53806b08cf39b5ad58bbe614775b3776e98a9f8760af0d4d1d47a9501 2103e15819590382a9dd878f01e2f0cbce541564eb415e43b440472d883ecd283058ac"
|
|
142
|
-
},
|
|
143
|
-
"expected": {
|
|
144
|
-
"name": "p2sh",
|
|
145
|
-
"address": "36TibC8RrPB9WrBdPoGXhHqDHJosyFVtVQ",
|
|
146
|
-
"hash": "3454c084887afe854e80221c69d6282926f809c4",
|
|
147
|
-
"output": "OP_HASH160 3454c084887afe854e80221c69d6282926f809c4 OP_EQUAL",
|
|
148
|
-
"redeem": {
|
|
149
|
-
"output": "03e15819590382a9dd878f01e2f0cbce541564eb415e43b440472d883ecd283058 OP_CHECKSIG",
|
|
150
|
-
"input": "3045022100e4fce9ec72b609a2df1dc050c20dcf101d27faefb3e686b7a4cb067becdd5e8e022071287fced53806b08cf39b5ad58bbe614775b3776e98a9f8760af0d4d1d47a9501",
|
|
151
|
-
"witness": []
|
|
152
|
-
},
|
|
153
|
-
"witness": []
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
"description": "p2sh-p2wpkh, in and out (from input AND witness)",
|
|
158
|
-
"arguments": {
|
|
159
|
-
"input": "0014c30afa58ae0673b00a45b5c17dff4633780f1400",
|
|
160
|
-
"witness": [
|
|
161
|
-
"3045022100e4fce9ec72b609a2df1dc050c20dcf101d27faefb3e686b7a4cb067becdd5e8e022071287fced53806b08cf39b5ad58bbe614775b3776e98a9f8760af0d4d1d47a9501",
|
|
162
|
-
"03e15819590382a9dd878f01e2f0cbce541564eb415e43b440472d883ecd283058"
|
|
163
|
-
]
|
|
164
|
-
},
|
|
165
|
-
"expected": {
|
|
166
|
-
"name": "p2sh",
|
|
167
|
-
"address": "325CuTNSYmvurXaBmhNFer5zDkKnDXZggu",
|
|
168
|
-
"hash": "0432515d8fe8de31be8207987fc6d67b29d5e7cc",
|
|
169
|
-
"output": "OP_HASH160 0432515d8fe8de31be8207987fc6d67b29d5e7cc OP_EQUAL",
|
|
170
|
-
"redeem": {
|
|
171
|
-
"output": "OP_0 c30afa58ae0673b00a45b5c17dff4633780f1400",
|
|
172
|
-
"input": "",
|
|
173
|
-
"witness": [
|
|
174
|
-
"3045022100e4fce9ec72b609a2df1dc050c20dcf101d27faefb3e686b7a4cb067becdd5e8e022071287fced53806b08cf39b5ad58bbe614775b3776e98a9f8760af0d4d1d47a9501",
|
|
175
|
-
"03e15819590382a9dd878f01e2f0cbce541564eb415e43b440472d883ecd283058"
|
|
176
|
-
]
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
"description": "p2sh-p2pkh, out (network derived from redeem)",
|
|
182
|
-
"arguments": {
|
|
183
|
-
"redeem": {
|
|
184
|
-
"address": "this is P2PKH context, unknown and ignored by P2SH",
|
|
185
|
-
"output": "OP_DUP OP_HASH160 c30afa58ae0673b00a45b5c17dff4633780f1400 OP_EQUALVERIFY OP_CHECKSIG",
|
|
186
|
-
"network": "testnet"
|
|
187
|
-
}
|
|
188
|
-
},
|
|
189
|
-
"expected": {
|
|
190
|
-
"name": "p2sh",
|
|
191
|
-
"address": "2N7nfc7zeWuADtpdR4MrR7Wq3dzr7LxTCgS",
|
|
192
|
-
"hash": "9f840a5fc02407ef0ad499c2ec0eb0b942fb0086",
|
|
193
|
-
"output": "OP_HASH160 9f840a5fc02407ef0ad499c2ec0eb0b942fb0086 OP_EQUAL",
|
|
194
|
-
"input": null,
|
|
195
|
-
"witness": null,
|
|
196
|
-
"network": "testnet"
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
],
|
|
200
|
-
"invalid": [
|
|
201
|
-
{
|
|
202
|
-
"exception": "Not enough data",
|
|
203
|
-
"arguments": {}
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
"description": "Non-minimally encoded (non BIP62 compliant)",
|
|
207
|
-
"exception": "Expected property \"output\" of type Buffer\\(Length: 23\\), got Buffer\\(Length: 24\\)",
|
|
208
|
-
"arguments": {
|
|
209
|
-
"outputHex": "a94c14c286a1af0947f58d1ad787385b1c2c4a976f9e7187"
|
|
210
|
-
}
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
"description": "Expected OP_HASH160",
|
|
214
|
-
"exception": "Output is invalid",
|
|
215
|
-
"options": {},
|
|
216
|
-
"arguments": {
|
|
217
|
-
"output": "OP_HASH256 ffffffffffffffffffffffffffffffffffffffff OP_EQUAL"
|
|
218
|
-
}
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
"description": "Unexpected OP_RESERVED",
|
|
222
|
-
"exception": "Output is invalid",
|
|
223
|
-
"arguments": {
|
|
224
|
-
"output": "OP_HASH256 ffffffffffffffffffffffffffffffffffffff OP_EQUAL OP_RESERVED"
|
|
225
|
-
}
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
"description": "address.hash != H",
|
|
229
|
-
"exception": "Hash mismatch",
|
|
230
|
-
"arguments": {
|
|
231
|
-
"address": "325CuTNSYmvurXaBmhNFer5zDkKnDXZggu",
|
|
232
|
-
"hash": "ffffffffffffffffffffffffffffffffffffffff"
|
|
233
|
-
}
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
"description": "address.hash != output.hash",
|
|
237
|
-
"exception": "Hash mismatch",
|
|
238
|
-
"arguments": {
|
|
239
|
-
"address": "325CuTNSYmvurXaBmhNFer5zDkKnDXZggu",
|
|
240
|
-
"output": "OP_HASH160 ffffffffffffffffffffffffffffffffffffffff OP_EQUAL"
|
|
241
|
-
}
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
"description": "output.hash != H",
|
|
245
|
-
"exception": "Hash mismatch",
|
|
246
|
-
"arguments": {
|
|
247
|
-
"hash": "ffffffffffffffffffffffffffffffffffffffff",
|
|
248
|
-
"output": "OP_HASH160 0432515d8fe8de31be8207987fc6d67b29d5e7cc OP_EQUAL"
|
|
249
|
-
}
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
"description": "H(redeem.output) != H",
|
|
253
|
-
"exception": "Hash mismatch",
|
|
254
|
-
"arguments": {
|
|
255
|
-
"hash": "ffffffffffffffffffffffffffffffffffffffff",
|
|
256
|
-
"redeem": {
|
|
257
|
-
"output": "03e15819590382a9dd878f01e2f0cbce541564eb415e43b440472d883ecd283058 OP_CHECKSIG"
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
"exception": "Invalid version or Network mismatch",
|
|
263
|
-
"arguments": {
|
|
264
|
-
"address": "134D6gYy8DsR5m4416BnmgASuMBqKvogQh"
|
|
265
|
-
}
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
"exception": "Invalid address",
|
|
269
|
-
"arguments": {
|
|
270
|
-
"address": "TYPjCiGbKiwP6r12cdkmVjySbQr7mb3r"
|
|
271
|
-
}
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
"exception": "Invalid address",
|
|
275
|
-
"arguments": {
|
|
276
|
-
"address": "EDaBpuERpLssFzbCV1kgy8tKJsHrcwmzY7HDMF2"
|
|
277
|
-
}
|
|
278
|
-
},
|
|
279
|
-
{
|
|
280
|
-
"exception": "Input too short",
|
|
281
|
-
"arguments": {
|
|
282
|
-
"input": ""
|
|
283
|
-
}
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
"exception": "Input too short",
|
|
287
|
-
"arguments": {
|
|
288
|
-
"inputHex": "01ff02ff"
|
|
289
|
-
}
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
"exception": "Redeem.output too short",
|
|
293
|
-
"arguments": {
|
|
294
|
-
"input": "OP_0 OP_0"
|
|
295
|
-
}
|
|
296
|
-
},
|
|
297
|
-
{
|
|
298
|
-
"exception": "Redeem.output unspendable if larger than 520 bytes",
|
|
299
|
-
"arguments": {
|
|
300
|
-
"redeem": {
|
|
301
|
-
"output": "OP_16 03669b8afcec803a0d323e9a17f3ea8e68e8abe5a278020a929adbec52421adbd0 0260b2003c386519fc9eadf2b5cf124dd8eea4c4e68d5e154050a9346ea98ce600 0362a74e399c39ed5593852a30147f2959b56bb827dfa3e60e464b02ccf87dc5e8 0261345b53de74a4d721ef877c255429961b7e43714171ac06168d7e08c542a8b8 02da72e8b46901a65d4374fe6315538d8f368557dda3a1dcf9ea903f3afe7314c8 0318c82dd0b53fd3a932d16e0ba9e278fcc937c582d5781be626ff16e201f72286 0297ccef1ef99f9d73dec9ad37476ddb232f1238aff877af19e72ba04493361009 02e502cfd5c3f972fe9a3e2a18827820638f96b6f347e54d63deb839011fd5765d 03e687710f0e3ebe81c1037074da939d409c0025f17eb86adb9427d28f0f7ae0e9 02c04d3a5274952acdbc76987f3184b346a483d43be40874624b29e3692c1df5af 02ed06e0f418b5b43a7ec01d1d7d27290fa15f75771cb69b642a51471c29c84acd 036d46073cbb9ffee90473f3da429abc8de7f8751199da44485682a989a4bebb24 02f5d1ff7c9029a80a4e36b9a5497027ef7f3e73384a4a94fbfe7c4e9164eec8bc 02e41deffd1b7cce11cde209a781adcffdabd1b91c0ba0375857a2bfd9302419f3 02d76625f7956a7fc505ab02556c23ee72d832f1bac391bcd2d3abce5710a13d06 0399eb0a5487515802dc14544cf10b3666623762fbed2ec38a3975716e2c29c232 OP_16 OP_CHECKMULTISIG"
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
"exception": "Input is invalid",
|
|
307
|
-
"arguments": {
|
|
308
|
-
"input": "OP_0 OP_3"
|
|
309
|
-
}
|
|
310
|
-
},
|
|
311
|
-
{
|
|
312
|
-
"exception": "Redeem.input mismatch",
|
|
313
|
-
"arguments": {
|
|
314
|
-
"input": "OP_0 02ffff",
|
|
315
|
-
"redeem": {
|
|
316
|
-
"input": "OP_CHECKSIG",
|
|
317
|
-
"output": "ffff"
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
},
|
|
321
|
-
{
|
|
322
|
-
"exception": "Redeem.output mismatch",
|
|
323
|
-
"arguments": {
|
|
324
|
-
"input": "OP_0 02ffff",
|
|
325
|
-
"redeem": {
|
|
326
|
-
"input": "OP_0",
|
|
327
|
-
"output": "fff3"
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
},
|
|
331
|
-
{
|
|
332
|
-
"exception": "Redeem.output too short",
|
|
333
|
-
"arguments": {
|
|
334
|
-
"redeem": {
|
|
335
|
-
"input": "OP_0",
|
|
336
|
-
"output": ""
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
},
|
|
340
|
-
{
|
|
341
|
-
"exception": "Input and witness provided",
|
|
342
|
-
"arguments": {
|
|
343
|
-
"redeem": {
|
|
344
|
-
"input": "OP_0",
|
|
345
|
-
"witness": [
|
|
346
|
-
"030000000000000000000000000000000000000000000000000000000000000001"
|
|
347
|
-
]
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
},
|
|
351
|
-
{
|
|
352
|
-
"exception": "Non push-only scriptSig",
|
|
353
|
-
"arguments": {
|
|
354
|
-
"redeem": {
|
|
355
|
-
"input": "OP_RETURN",
|
|
356
|
-
"output": "OP_1"
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
},
|
|
360
|
-
{
|
|
361
|
-
"exception": "Redeem.output too short",
|
|
362
|
-
"arguments": {
|
|
363
|
-
"inputHex": "021000"
|
|
364
|
-
}
|
|
365
|
-
},
|
|
366
|
-
{
|
|
367
|
-
"exception": "Witness and redeem.witness mismatch",
|
|
368
|
-
"arguments": {
|
|
369
|
-
"witness": [
|
|
370
|
-
"3045ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
|
|
371
|
-
"030000000000000000000000000000000000000000000000000000000000000001"
|
|
372
|
-
],
|
|
373
|
-
"redeem": {
|
|
374
|
-
"witness": [
|
|
375
|
-
"3045dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd",
|
|
376
|
-
"030000000000000000000000000000000000000000000000000000000000000001"
|
|
377
|
-
]
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
},
|
|
381
|
-
{
|
|
382
|
-
"exception": "Hash mismatch",
|
|
383
|
-
"arguments": {
|
|
384
|
-
"hash": "ffffffffffffffffffffffffffffffffffffffff",
|
|
385
|
-
"redeem": {
|
|
386
|
-
"input": "OP_0",
|
|
387
|
-
"output": "ffff"
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
},
|
|
391
|
-
{
|
|
392
|
-
"exception": "Network mismatch",
|
|
393
|
-
"arguments": {
|
|
394
|
-
"network": "bitcoin",
|
|
395
|
-
"redeem": {
|
|
396
|
-
"network": "testnet"
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
},
|
|
400
|
-
{
|
|
401
|
-
"exception": "Network mismatch",
|
|
402
|
-
"arguments": {
|
|
403
|
-
"network": "testnet",
|
|
404
|
-
"redeem": {
|
|
405
|
-
"network": "bitcoin"
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
},
|
|
409
|
-
{
|
|
410
|
-
"exception": "Empty input",
|
|
411
|
-
"arguments": {
|
|
412
|
-
"inputHex": "01ff"
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
],
|
|
416
|
-
"dynamic": {
|
|
417
|
-
"depends": {
|
|
418
|
-
"address": [
|
|
419
|
-
"address",
|
|
420
|
-
"output",
|
|
421
|
-
"hash",
|
|
422
|
-
"redeem.output",
|
|
423
|
-
[
|
|
424
|
-
"input",
|
|
425
|
-
"witness"
|
|
426
|
-
]
|
|
427
|
-
],
|
|
428
|
-
"hash": [
|
|
429
|
-
"address",
|
|
430
|
-
"output",
|
|
431
|
-
"hash",
|
|
432
|
-
"redeem.output",
|
|
433
|
-
[
|
|
434
|
-
"input",
|
|
435
|
-
"witness"
|
|
436
|
-
]
|
|
437
|
-
],
|
|
438
|
-
"output": [
|
|
439
|
-
"address",
|
|
440
|
-
"output",
|
|
441
|
-
"hash",
|
|
442
|
-
"redeem.output",
|
|
443
|
-
[
|
|
444
|
-
"input",
|
|
445
|
-
"witness"
|
|
446
|
-
]
|
|
447
|
-
],
|
|
448
|
-
"redeem.output": [
|
|
449
|
-
[
|
|
450
|
-
"input",
|
|
451
|
-
"witness"
|
|
452
|
-
]
|
|
453
|
-
],
|
|
454
|
-
"redeem.input": [
|
|
455
|
-
[
|
|
456
|
-
"input",
|
|
457
|
-
"witness"
|
|
458
|
-
]
|
|
459
|
-
],
|
|
460
|
-
"redeem.witness": [
|
|
461
|
-
[
|
|
462
|
-
"input",
|
|
463
|
-
"witness"
|
|
464
|
-
]
|
|
465
|
-
],
|
|
466
|
-
"input": [
|
|
467
|
-
"redeem"
|
|
468
|
-
],
|
|
469
|
-
"witness": [
|
|
470
|
-
"redeem"
|
|
471
|
-
]
|
|
472
|
-
},
|
|
473
|
-
"details": [
|
|
474
|
-
{
|
|
475
|
-
"description": "p2sh-p2pkh",
|
|
476
|
-
"address": "3GETYP4cuSesh2zsPEEYVZqnRedwe4FwUT",
|
|
477
|
-
"hash": "9f840a5fc02407ef0ad499c2ec0eb0b942fb0086",
|
|
478
|
-
"output": "OP_HASH160 9f840a5fc02407ef0ad499c2ec0eb0b942fb0086 OP_EQUAL",
|
|
479
|
-
"redeem": {
|
|
480
|
-
"output": "OP_DUP OP_HASH160 c30afa58ae0673b00a45b5c17dff4633780f1400 OP_EQUALVERIFY OP_CHECKSIG",
|
|
481
|
-
"input": "3045022100e4fce9ec72b609a2df1dc050c20dcf101d27faefb3e686b7a4cb067becdd5e8e022071287fced53806b08cf39b5ad58bbe614775b3776e98a9f8760af0d4d1d47a9501 03e15819590382a9dd878f01e2f0cbce541564eb415e43b440472d883ecd283058",
|
|
482
|
-
"witness": []
|
|
483
|
-
},
|
|
484
|
-
"input": "3045022100e4fce9ec72b609a2df1dc050c20dcf101d27faefb3e686b7a4cb067becdd5e8e022071287fced53806b08cf39b5ad58bbe614775b3776e98a9f8760af0d4d1d47a9501 03e15819590382a9dd878f01e2f0cbce541564eb415e43b440472d883ecd283058 76a914c30afa58ae0673b00a45b5c17dff4633780f140088ac",
|
|
485
|
-
"witness": []
|
|
486
|
-
},
|
|
487
|
-
{
|
|
488
|
-
"description": "p2sh-p2wpkh",
|
|
489
|
-
"address": "325CuTNSYmvurXaBmhNFer5zDkKnDXZggu",
|
|
490
|
-
"hash": "0432515d8fe8de31be8207987fc6d67b29d5e7cc",
|
|
491
|
-
"output": "OP_HASH160 0432515d8fe8de31be8207987fc6d67b29d5e7cc OP_EQUAL",
|
|
492
|
-
"redeem": {
|
|
493
|
-
"output": "OP_0 c30afa58ae0673b00a45b5c17dff4633780f1400",
|
|
494
|
-
"input": "",
|
|
495
|
-
"witness": [
|
|
496
|
-
"3045022100e4fce9ec72b609a2df1dc050c20dcf101d27faefb3e686b7a4cb067becdd5e8e022071287fced53806b08cf39b5ad58bbe614775b3776e98a9f8760af0d4d1d47a9501",
|
|
497
|
-
"03e15819590382a9dd878f01e2f0cbce541564eb415e43b440472d883ecd283058"
|
|
498
|
-
]
|
|
499
|
-
},
|
|
500
|
-
"input": "0014c30afa58ae0673b00a45b5c17dff4633780f1400",
|
|
501
|
-
"witness": [
|
|
502
|
-
"3045022100e4fce9ec72b609a2df1dc050c20dcf101d27faefb3e686b7a4cb067becdd5e8e022071287fced53806b08cf39b5ad58bbe614775b3776e98a9f8760af0d4d1d47a9501",
|
|
503
|
-
"03e15819590382a9dd878f01e2f0cbce541564eb415e43b440472d883ecd283058"
|
|
504
|
-
]
|
|
505
|
-
}
|
|
506
|
-
]
|
|
507
|
-
}
|
|
508
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"valid": [
|
|
3
|
+
{
|
|
4
|
+
"description": "p2sh-*, out (from address)",
|
|
5
|
+
"arguments": {
|
|
6
|
+
"address": "3GETYP4cuSesh2zsPEEYVZqnRedwe4FwUT"
|
|
7
|
+
},
|
|
8
|
+
"options": {},
|
|
9
|
+
"expected": {
|
|
10
|
+
"name": "p2sh",
|
|
11
|
+
"hash": "9f840a5fc02407ef0ad499c2ec0eb0b942fb0086",
|
|
12
|
+
"output": "OP_HASH160 9f840a5fc02407ef0ad499c2ec0eb0b942fb0086 OP_EQUAL",
|
|
13
|
+
"redeem": null,
|
|
14
|
+
"input": null,
|
|
15
|
+
"witness": null
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"description": "p2sh-*, out (from hash)",
|
|
20
|
+
"arguments": {
|
|
21
|
+
"hash": "9f840a5fc02407ef0ad499c2ec0eb0b942fb0086"
|
|
22
|
+
},
|
|
23
|
+
"expected": {
|
|
24
|
+
"name": "p2sh",
|
|
25
|
+
"address": "3GETYP4cuSesh2zsPEEYVZqnRedwe4FwUT",
|
|
26
|
+
"output": "OP_HASH160 9f840a5fc02407ef0ad499c2ec0eb0b942fb0086 OP_EQUAL",
|
|
27
|
+
"redeem": null,
|
|
28
|
+
"input": null,
|
|
29
|
+
"witness": null
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"description": "p2sh-*, out (from output)",
|
|
34
|
+
"arguments": {
|
|
35
|
+
"output": "OP_HASH160 9f840a5fc02407ef0ad499c2ec0eb0b942fb0086 OP_EQUAL"
|
|
36
|
+
},
|
|
37
|
+
"expected": {
|
|
38
|
+
"name": "p2sh",
|
|
39
|
+
"address": "3GETYP4cuSesh2zsPEEYVZqnRedwe4FwUT",
|
|
40
|
+
"hash": "9f840a5fc02407ef0ad499c2ec0eb0b942fb0086",
|
|
41
|
+
"redeem": null,
|
|
42
|
+
"input": null,
|
|
43
|
+
"witness": null
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"description": "p2sh-p2pkh, out (from redeem)",
|
|
48
|
+
"arguments": {
|
|
49
|
+
"redeem": {
|
|
50
|
+
"address": "this is P2PKH context, unknown and ignored by P2SH",
|
|
51
|
+
"output": "OP_DUP OP_HASH160 c30afa58ae0673b00a45b5c17dff4633780f1400 OP_EQUALVERIFY OP_CHECKSIG"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"expected": {
|
|
55
|
+
"name": "p2sh",
|
|
56
|
+
"address": "3GETYP4cuSesh2zsPEEYVZqnRedwe4FwUT",
|
|
57
|
+
"hash": "9f840a5fc02407ef0ad499c2ec0eb0b942fb0086",
|
|
58
|
+
"output": "OP_HASH160 9f840a5fc02407ef0ad499c2ec0eb0b942fb0086 OP_EQUAL",
|
|
59
|
+
"input": null,
|
|
60
|
+
"witness": null
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"description": "p2sh-p2wpkh, out (from redeem)",
|
|
65
|
+
"arguments": {
|
|
66
|
+
"redeem": {
|
|
67
|
+
"hash": "this is P2WPKH context, unknown and ignored by P2SH",
|
|
68
|
+
"output": "OP_0 c30afa58ae0673b00a45b5c17dff4633780f1400"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"expected": {
|
|
72
|
+
"name": "p2sh",
|
|
73
|
+
"address": "325CuTNSYmvurXaBmhNFer5zDkKnDXZggu",
|
|
74
|
+
"hash": "0432515d8fe8de31be8207987fc6d67b29d5e7cc",
|
|
75
|
+
"output": "OP_HASH160 0432515d8fe8de31be8207987fc6d67b29d5e7cc OP_EQUAL",
|
|
76
|
+
"input": null,
|
|
77
|
+
"witness": null
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"description": "p2sh-p2pk, out (from redeem)",
|
|
82
|
+
"arguments": {
|
|
83
|
+
"redeem": {
|
|
84
|
+
"output": "03e15819590382a9dd878f01e2f0cbce541564eb415e43b440472d883ecd283058 OP_CHECKSIG",
|
|
85
|
+
"pubkey": "this is P2WPKH context, unknown and ignored by P2SH"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"expected": {
|
|
89
|
+
"name": "p2sh",
|
|
90
|
+
"address": "36TibC8RrPB9WrBdPoGXhHqDHJosyFVtVQ",
|
|
91
|
+
"hash": "3454c084887afe854e80221c69d6282926f809c4",
|
|
92
|
+
"output": "OP_HASH160 3454c084887afe854e80221c69d6282926f809c4 OP_EQUAL",
|
|
93
|
+
"input": null,
|
|
94
|
+
"witness": null
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"description": "p2sh-p2pkh, in and out (from redeem)",
|
|
99
|
+
"arguments": {
|
|
100
|
+
"redeem": {
|
|
101
|
+
"output": "OP_DUP OP_HASH160 c30afa58ae0673b00a45b5c17dff4633780f1400 OP_EQUALVERIFY OP_CHECKSIG",
|
|
102
|
+
"input": "3045022100e4fce9ec72b609a2df1dc050c20dcf101d27faefb3e686b7a4cb067becdd5e8e022071287fced53806b08cf39b5ad58bbe614775b3776e98a9f8760af0d4d1d47a9501 03e15819590382a9dd878f01e2f0cbce541564eb415e43b440472d883ecd283058"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"expected": {
|
|
106
|
+
"name": "p2sh",
|
|
107
|
+
"address": "3GETYP4cuSesh2zsPEEYVZqnRedwe4FwUT",
|
|
108
|
+
"hash": "9f840a5fc02407ef0ad499c2ec0eb0b942fb0086",
|
|
109
|
+
"output": "OP_HASH160 9f840a5fc02407ef0ad499c2ec0eb0b942fb0086 OP_EQUAL",
|
|
110
|
+
"input": "3045022100e4fce9ec72b609a2df1dc050c20dcf101d27faefb3e686b7a4cb067becdd5e8e022071287fced53806b08cf39b5ad58bbe614775b3776e98a9f8760af0d4d1d47a9501 03e15819590382a9dd878f01e2f0cbce541564eb415e43b440472d883ecd283058 76a914c30afa58ae0673b00a45b5c17dff4633780f140088ac",
|
|
111
|
+
"witness": []
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"description": "p2sh-p2wpkh, in and out (from redeem w/ witness)",
|
|
116
|
+
"arguments": {
|
|
117
|
+
"redeem": {
|
|
118
|
+
"output": "OP_0 c30afa58ae0673b00a45b5c17dff4633780f1400",
|
|
119
|
+
"input": "",
|
|
120
|
+
"witness": [
|
|
121
|
+
"3045022100e4fce9ec72b609a2df1dc050c20dcf101d27faefb3e686b7a4cb067becdd5e8e022071287fced53806b08cf39b5ad58bbe614775b3776e98a9f8760af0d4d1d47a9501",
|
|
122
|
+
"03e15819590382a9dd878f01e2f0cbce541564eb415e43b440472d883ecd283058"
|
|
123
|
+
]
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"expected": {
|
|
127
|
+
"name": "p2sh",
|
|
128
|
+
"address": "325CuTNSYmvurXaBmhNFer5zDkKnDXZggu",
|
|
129
|
+
"hash": "0432515d8fe8de31be8207987fc6d67b29d5e7cc",
|
|
130
|
+
"output": "OP_HASH160 0432515d8fe8de31be8207987fc6d67b29d5e7cc OP_EQUAL",
|
|
131
|
+
"input": "0014c30afa58ae0673b00a45b5c17dff4633780f1400",
|
|
132
|
+
"witness": [
|
|
133
|
+
"3045022100e4fce9ec72b609a2df1dc050c20dcf101d27faefb3e686b7a4cb067becdd5e8e022071287fced53806b08cf39b5ad58bbe614775b3776e98a9f8760af0d4d1d47a9501",
|
|
134
|
+
"03e15819590382a9dd878f01e2f0cbce541564eb415e43b440472d883ecd283058"
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"description": "p2sh-p2pk, in and out (from input)",
|
|
140
|
+
"arguments": {
|
|
141
|
+
"input": "3045022100e4fce9ec72b609a2df1dc050c20dcf101d27faefb3e686b7a4cb067becdd5e8e022071287fced53806b08cf39b5ad58bbe614775b3776e98a9f8760af0d4d1d47a9501 2103e15819590382a9dd878f01e2f0cbce541564eb415e43b440472d883ecd283058ac"
|
|
142
|
+
},
|
|
143
|
+
"expected": {
|
|
144
|
+
"name": "p2sh",
|
|
145
|
+
"address": "36TibC8RrPB9WrBdPoGXhHqDHJosyFVtVQ",
|
|
146
|
+
"hash": "3454c084887afe854e80221c69d6282926f809c4",
|
|
147
|
+
"output": "OP_HASH160 3454c084887afe854e80221c69d6282926f809c4 OP_EQUAL",
|
|
148
|
+
"redeem": {
|
|
149
|
+
"output": "03e15819590382a9dd878f01e2f0cbce541564eb415e43b440472d883ecd283058 OP_CHECKSIG",
|
|
150
|
+
"input": "3045022100e4fce9ec72b609a2df1dc050c20dcf101d27faefb3e686b7a4cb067becdd5e8e022071287fced53806b08cf39b5ad58bbe614775b3776e98a9f8760af0d4d1d47a9501",
|
|
151
|
+
"witness": []
|
|
152
|
+
},
|
|
153
|
+
"witness": []
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"description": "p2sh-p2wpkh, in and out (from input AND witness)",
|
|
158
|
+
"arguments": {
|
|
159
|
+
"input": "0014c30afa58ae0673b00a45b5c17dff4633780f1400",
|
|
160
|
+
"witness": [
|
|
161
|
+
"3045022100e4fce9ec72b609a2df1dc050c20dcf101d27faefb3e686b7a4cb067becdd5e8e022071287fced53806b08cf39b5ad58bbe614775b3776e98a9f8760af0d4d1d47a9501",
|
|
162
|
+
"03e15819590382a9dd878f01e2f0cbce541564eb415e43b440472d883ecd283058"
|
|
163
|
+
]
|
|
164
|
+
},
|
|
165
|
+
"expected": {
|
|
166
|
+
"name": "p2sh",
|
|
167
|
+
"address": "325CuTNSYmvurXaBmhNFer5zDkKnDXZggu",
|
|
168
|
+
"hash": "0432515d8fe8de31be8207987fc6d67b29d5e7cc",
|
|
169
|
+
"output": "OP_HASH160 0432515d8fe8de31be8207987fc6d67b29d5e7cc OP_EQUAL",
|
|
170
|
+
"redeem": {
|
|
171
|
+
"output": "OP_0 c30afa58ae0673b00a45b5c17dff4633780f1400",
|
|
172
|
+
"input": "",
|
|
173
|
+
"witness": [
|
|
174
|
+
"3045022100e4fce9ec72b609a2df1dc050c20dcf101d27faefb3e686b7a4cb067becdd5e8e022071287fced53806b08cf39b5ad58bbe614775b3776e98a9f8760af0d4d1d47a9501",
|
|
175
|
+
"03e15819590382a9dd878f01e2f0cbce541564eb415e43b440472d883ecd283058"
|
|
176
|
+
]
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"description": "p2sh-p2pkh, out (network derived from redeem)",
|
|
182
|
+
"arguments": {
|
|
183
|
+
"redeem": {
|
|
184
|
+
"address": "this is P2PKH context, unknown and ignored by P2SH",
|
|
185
|
+
"output": "OP_DUP OP_HASH160 c30afa58ae0673b00a45b5c17dff4633780f1400 OP_EQUALVERIFY OP_CHECKSIG",
|
|
186
|
+
"network": "testnet"
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
"expected": {
|
|
190
|
+
"name": "p2sh",
|
|
191
|
+
"address": "2N7nfc7zeWuADtpdR4MrR7Wq3dzr7LxTCgS",
|
|
192
|
+
"hash": "9f840a5fc02407ef0ad499c2ec0eb0b942fb0086",
|
|
193
|
+
"output": "OP_HASH160 9f840a5fc02407ef0ad499c2ec0eb0b942fb0086 OP_EQUAL",
|
|
194
|
+
"input": null,
|
|
195
|
+
"witness": null,
|
|
196
|
+
"network": "testnet"
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
],
|
|
200
|
+
"invalid": [
|
|
201
|
+
{
|
|
202
|
+
"exception": "Not enough data",
|
|
203
|
+
"arguments": {}
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"description": "Non-minimally encoded (non BIP62 compliant)",
|
|
207
|
+
"exception": "Expected property \"output\" of type Buffer\\(Length: 23\\), got Buffer\\(Length: 24\\)",
|
|
208
|
+
"arguments": {
|
|
209
|
+
"outputHex": "a94c14c286a1af0947f58d1ad787385b1c2c4a976f9e7187"
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"description": "Expected OP_HASH160",
|
|
214
|
+
"exception": "Output is invalid",
|
|
215
|
+
"options": {},
|
|
216
|
+
"arguments": {
|
|
217
|
+
"output": "OP_HASH256 ffffffffffffffffffffffffffffffffffffffff OP_EQUAL"
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"description": "Unexpected OP_RESERVED",
|
|
222
|
+
"exception": "Output is invalid",
|
|
223
|
+
"arguments": {
|
|
224
|
+
"output": "OP_HASH256 ffffffffffffffffffffffffffffffffffffff OP_EQUAL OP_RESERVED"
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"description": "address.hash != H",
|
|
229
|
+
"exception": "Hash mismatch",
|
|
230
|
+
"arguments": {
|
|
231
|
+
"address": "325CuTNSYmvurXaBmhNFer5zDkKnDXZggu",
|
|
232
|
+
"hash": "ffffffffffffffffffffffffffffffffffffffff"
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"description": "address.hash != output.hash",
|
|
237
|
+
"exception": "Hash mismatch",
|
|
238
|
+
"arguments": {
|
|
239
|
+
"address": "325CuTNSYmvurXaBmhNFer5zDkKnDXZggu",
|
|
240
|
+
"output": "OP_HASH160 ffffffffffffffffffffffffffffffffffffffff OP_EQUAL"
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"description": "output.hash != H",
|
|
245
|
+
"exception": "Hash mismatch",
|
|
246
|
+
"arguments": {
|
|
247
|
+
"hash": "ffffffffffffffffffffffffffffffffffffffff",
|
|
248
|
+
"output": "OP_HASH160 0432515d8fe8de31be8207987fc6d67b29d5e7cc OP_EQUAL"
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"description": "H(redeem.output) != H",
|
|
253
|
+
"exception": "Hash mismatch",
|
|
254
|
+
"arguments": {
|
|
255
|
+
"hash": "ffffffffffffffffffffffffffffffffffffffff",
|
|
256
|
+
"redeem": {
|
|
257
|
+
"output": "03e15819590382a9dd878f01e2f0cbce541564eb415e43b440472d883ecd283058 OP_CHECKSIG"
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"exception": "Invalid version or Network mismatch",
|
|
263
|
+
"arguments": {
|
|
264
|
+
"address": "134D6gYy8DsR5m4416BnmgASuMBqKvogQh"
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"exception": "Invalid address",
|
|
269
|
+
"arguments": {
|
|
270
|
+
"address": "TYPjCiGbKiwP6r12cdkmVjySbQr7mb3r"
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"exception": "Invalid address",
|
|
275
|
+
"arguments": {
|
|
276
|
+
"address": "EDaBpuERpLssFzbCV1kgy8tKJsHrcwmzY7HDMF2"
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"exception": "Input too short",
|
|
281
|
+
"arguments": {
|
|
282
|
+
"input": ""
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"exception": "Input too short",
|
|
287
|
+
"arguments": {
|
|
288
|
+
"inputHex": "01ff02ff"
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"exception": "Redeem.output too short",
|
|
293
|
+
"arguments": {
|
|
294
|
+
"input": "OP_0 OP_0"
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"exception": "Redeem.output unspendable if larger than 520 bytes",
|
|
299
|
+
"arguments": {
|
|
300
|
+
"redeem": {
|
|
301
|
+
"output": "OP_16 03669b8afcec803a0d323e9a17f3ea8e68e8abe5a278020a929adbec52421adbd0 0260b2003c386519fc9eadf2b5cf124dd8eea4c4e68d5e154050a9346ea98ce600 0362a74e399c39ed5593852a30147f2959b56bb827dfa3e60e464b02ccf87dc5e8 0261345b53de74a4d721ef877c255429961b7e43714171ac06168d7e08c542a8b8 02da72e8b46901a65d4374fe6315538d8f368557dda3a1dcf9ea903f3afe7314c8 0318c82dd0b53fd3a932d16e0ba9e278fcc937c582d5781be626ff16e201f72286 0297ccef1ef99f9d73dec9ad37476ddb232f1238aff877af19e72ba04493361009 02e502cfd5c3f972fe9a3e2a18827820638f96b6f347e54d63deb839011fd5765d 03e687710f0e3ebe81c1037074da939d409c0025f17eb86adb9427d28f0f7ae0e9 02c04d3a5274952acdbc76987f3184b346a483d43be40874624b29e3692c1df5af 02ed06e0f418b5b43a7ec01d1d7d27290fa15f75771cb69b642a51471c29c84acd 036d46073cbb9ffee90473f3da429abc8de7f8751199da44485682a989a4bebb24 02f5d1ff7c9029a80a4e36b9a5497027ef7f3e73384a4a94fbfe7c4e9164eec8bc 02e41deffd1b7cce11cde209a781adcffdabd1b91c0ba0375857a2bfd9302419f3 02d76625f7956a7fc505ab02556c23ee72d832f1bac391bcd2d3abce5710a13d06 0399eb0a5487515802dc14544cf10b3666623762fbed2ec38a3975716e2c29c232 OP_16 OP_CHECKMULTISIG"
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"exception": "Input is invalid",
|
|
307
|
+
"arguments": {
|
|
308
|
+
"input": "OP_0 OP_3"
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"exception": "Redeem.input mismatch",
|
|
313
|
+
"arguments": {
|
|
314
|
+
"input": "OP_0 02ffff",
|
|
315
|
+
"redeem": {
|
|
316
|
+
"input": "OP_CHECKSIG",
|
|
317
|
+
"output": "ffff"
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"exception": "Redeem.output mismatch",
|
|
323
|
+
"arguments": {
|
|
324
|
+
"input": "OP_0 02ffff",
|
|
325
|
+
"redeem": {
|
|
326
|
+
"input": "OP_0",
|
|
327
|
+
"output": "fff3"
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"exception": "Redeem.output too short",
|
|
333
|
+
"arguments": {
|
|
334
|
+
"redeem": {
|
|
335
|
+
"input": "OP_0",
|
|
336
|
+
"output": ""
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"exception": "Input and witness provided",
|
|
342
|
+
"arguments": {
|
|
343
|
+
"redeem": {
|
|
344
|
+
"input": "OP_0",
|
|
345
|
+
"witness": [
|
|
346
|
+
"030000000000000000000000000000000000000000000000000000000000000001"
|
|
347
|
+
]
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"exception": "Non push-only scriptSig",
|
|
353
|
+
"arguments": {
|
|
354
|
+
"redeem": {
|
|
355
|
+
"input": "OP_RETURN",
|
|
356
|
+
"output": "OP_1"
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"exception": "Redeem.output too short",
|
|
362
|
+
"arguments": {
|
|
363
|
+
"inputHex": "021000"
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"exception": "Witness and redeem.witness mismatch",
|
|
368
|
+
"arguments": {
|
|
369
|
+
"witness": [
|
|
370
|
+
"3045ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
|
|
371
|
+
"030000000000000000000000000000000000000000000000000000000000000001"
|
|
372
|
+
],
|
|
373
|
+
"redeem": {
|
|
374
|
+
"witness": [
|
|
375
|
+
"3045dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd",
|
|
376
|
+
"030000000000000000000000000000000000000000000000000000000000000001"
|
|
377
|
+
]
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"exception": "Hash mismatch",
|
|
383
|
+
"arguments": {
|
|
384
|
+
"hash": "ffffffffffffffffffffffffffffffffffffffff",
|
|
385
|
+
"redeem": {
|
|
386
|
+
"input": "OP_0",
|
|
387
|
+
"output": "ffff"
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"exception": "Network mismatch",
|
|
393
|
+
"arguments": {
|
|
394
|
+
"network": "bitcoin",
|
|
395
|
+
"redeem": {
|
|
396
|
+
"network": "testnet"
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
"exception": "Network mismatch",
|
|
402
|
+
"arguments": {
|
|
403
|
+
"network": "testnet",
|
|
404
|
+
"redeem": {
|
|
405
|
+
"network": "bitcoin"
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"exception": "Empty input",
|
|
411
|
+
"arguments": {
|
|
412
|
+
"inputHex": "01ff"
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
],
|
|
416
|
+
"dynamic": {
|
|
417
|
+
"depends": {
|
|
418
|
+
"address": [
|
|
419
|
+
"address",
|
|
420
|
+
"output",
|
|
421
|
+
"hash",
|
|
422
|
+
"redeem.output",
|
|
423
|
+
[
|
|
424
|
+
"input",
|
|
425
|
+
"witness"
|
|
426
|
+
]
|
|
427
|
+
],
|
|
428
|
+
"hash": [
|
|
429
|
+
"address",
|
|
430
|
+
"output",
|
|
431
|
+
"hash",
|
|
432
|
+
"redeem.output",
|
|
433
|
+
[
|
|
434
|
+
"input",
|
|
435
|
+
"witness"
|
|
436
|
+
]
|
|
437
|
+
],
|
|
438
|
+
"output": [
|
|
439
|
+
"address",
|
|
440
|
+
"output",
|
|
441
|
+
"hash",
|
|
442
|
+
"redeem.output",
|
|
443
|
+
[
|
|
444
|
+
"input",
|
|
445
|
+
"witness"
|
|
446
|
+
]
|
|
447
|
+
],
|
|
448
|
+
"redeem.output": [
|
|
449
|
+
[
|
|
450
|
+
"input",
|
|
451
|
+
"witness"
|
|
452
|
+
]
|
|
453
|
+
],
|
|
454
|
+
"redeem.input": [
|
|
455
|
+
[
|
|
456
|
+
"input",
|
|
457
|
+
"witness"
|
|
458
|
+
]
|
|
459
|
+
],
|
|
460
|
+
"redeem.witness": [
|
|
461
|
+
[
|
|
462
|
+
"input",
|
|
463
|
+
"witness"
|
|
464
|
+
]
|
|
465
|
+
],
|
|
466
|
+
"input": [
|
|
467
|
+
"redeem"
|
|
468
|
+
],
|
|
469
|
+
"witness": [
|
|
470
|
+
"redeem"
|
|
471
|
+
]
|
|
472
|
+
},
|
|
473
|
+
"details": [
|
|
474
|
+
{
|
|
475
|
+
"description": "p2sh-p2pkh",
|
|
476
|
+
"address": "3GETYP4cuSesh2zsPEEYVZqnRedwe4FwUT",
|
|
477
|
+
"hash": "9f840a5fc02407ef0ad499c2ec0eb0b942fb0086",
|
|
478
|
+
"output": "OP_HASH160 9f840a5fc02407ef0ad499c2ec0eb0b942fb0086 OP_EQUAL",
|
|
479
|
+
"redeem": {
|
|
480
|
+
"output": "OP_DUP OP_HASH160 c30afa58ae0673b00a45b5c17dff4633780f1400 OP_EQUALVERIFY OP_CHECKSIG",
|
|
481
|
+
"input": "3045022100e4fce9ec72b609a2df1dc050c20dcf101d27faefb3e686b7a4cb067becdd5e8e022071287fced53806b08cf39b5ad58bbe614775b3776e98a9f8760af0d4d1d47a9501 03e15819590382a9dd878f01e2f0cbce541564eb415e43b440472d883ecd283058",
|
|
482
|
+
"witness": []
|
|
483
|
+
},
|
|
484
|
+
"input": "3045022100e4fce9ec72b609a2df1dc050c20dcf101d27faefb3e686b7a4cb067becdd5e8e022071287fced53806b08cf39b5ad58bbe614775b3776e98a9f8760af0d4d1d47a9501 03e15819590382a9dd878f01e2f0cbce541564eb415e43b440472d883ecd283058 76a914c30afa58ae0673b00a45b5c17dff4633780f140088ac",
|
|
485
|
+
"witness": []
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
"description": "p2sh-p2wpkh",
|
|
489
|
+
"address": "325CuTNSYmvurXaBmhNFer5zDkKnDXZggu",
|
|
490
|
+
"hash": "0432515d8fe8de31be8207987fc6d67b29d5e7cc",
|
|
491
|
+
"output": "OP_HASH160 0432515d8fe8de31be8207987fc6d67b29d5e7cc OP_EQUAL",
|
|
492
|
+
"redeem": {
|
|
493
|
+
"output": "OP_0 c30afa58ae0673b00a45b5c17dff4633780f1400",
|
|
494
|
+
"input": "",
|
|
495
|
+
"witness": [
|
|
496
|
+
"3045022100e4fce9ec72b609a2df1dc050c20dcf101d27faefb3e686b7a4cb067becdd5e8e022071287fced53806b08cf39b5ad58bbe614775b3776e98a9f8760af0d4d1d47a9501",
|
|
497
|
+
"03e15819590382a9dd878f01e2f0cbce541564eb415e43b440472d883ecd283058"
|
|
498
|
+
]
|
|
499
|
+
},
|
|
500
|
+
"input": "0014c30afa58ae0673b00a45b5c17dff4633780f1400",
|
|
501
|
+
"witness": [
|
|
502
|
+
"3045022100e4fce9ec72b609a2df1dc050c20dcf101d27faefb3e686b7a4cb067becdd5e8e022071287fced53806b08cf39b5ad58bbe614775b3776e98a9f8760af0d4d1d47a9501",
|
|
503
|
+
"03e15819590382a9dd878f01e2f0cbce541564eb415e43b440472d883ecd283058"
|
|
504
|
+
]
|
|
505
|
+
}
|
|
506
|
+
]
|
|
507
|
+
}
|
|
508
|
+
}
|