bsv2 2.1.0 → 2.1.2

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.
Files changed (241) hide show
  1. package/dist/bsv2.mjs +1 -1
  2. package/dist/bsv2.umd.js +1 -1
  3. package/package.json +7 -3
  4. package/.babel.test +0 -10
  5. package/.editorconfig +0 -4
  6. package/.env.defaults +0 -1
  7. package/.env.schema +0 -1
  8. package/.husky/pre-commit +0 -1
  9. package/.mocharc.yml +0 -4
  10. package/.nvmrc +0 -1
  11. package/.travis.yml +0 -7
  12. package/babel.config.cjs +0 -44
  13. package/benchmark.js +0 -42
  14. package/bin/bsv.js +0 -11
  15. package/bin/network.js +0 -93
  16. package/build/index.html +0 -20
  17. package/doc/assets/anchor.js +0 -350
  18. package/doc/assets/bass-addons.css +0 -12
  19. package/doc/assets/bass.css +0 -544
  20. package/doc/assets/fonts/EOT/SourceCodePro-Bold.eot +0 -0
  21. package/doc/assets/fonts/EOT/SourceCodePro-Regular.eot +0 -0
  22. package/doc/assets/fonts/LICENSE.txt +0 -93
  23. package/doc/assets/fonts/OTF/SourceCodePro-Bold.otf +0 -0
  24. package/doc/assets/fonts/OTF/SourceCodePro-Regular.otf +0 -0
  25. package/doc/assets/fonts/TTF/SourceCodePro-Bold.ttf +0 -0
  26. package/doc/assets/fonts/TTF/SourceCodePro-Regular.ttf +0 -0
  27. package/doc/assets/fonts/WOFF/OTF/SourceCodePro-Bold.otf.woff +0 -0
  28. package/doc/assets/fonts/WOFF/OTF/SourceCodePro-Regular.otf.woff +0 -0
  29. package/doc/assets/fonts/WOFF/TTF/SourceCodePro-Bold.ttf.woff +0 -0
  30. package/doc/assets/fonts/WOFF/TTF/SourceCodePro-Regular.ttf.woff +0 -0
  31. package/doc/assets/fonts/WOFF2/OTF/SourceCodePro-Bold.otf.woff2 +0 -0
  32. package/doc/assets/fonts/WOFF2/OTF/SourceCodePro-Regular.otf.woff2 +0 -0
  33. package/doc/assets/fonts/WOFF2/TTF/SourceCodePro-Bold.ttf.woff2 +0 -0
  34. package/doc/assets/fonts/WOFF2/TTF/SourceCodePro-Regular.ttf.woff2 +0 -0
  35. package/doc/assets/fonts/source-code-pro.css +0 -23
  36. package/doc/assets/github.css +0 -123
  37. package/doc/assets/site.js +0 -168
  38. package/doc/assets/split.css +0 -15
  39. package/doc/assets/split.js +0 -782
  40. package/doc/assets/style.css +0 -147
  41. package/doc/index.html +0 -9461
  42. package/entry.js +0 -81
  43. package/eslint.config.mjs +0 -8
  44. package/index.js +0 -98
  45. package/karma.conf.ts +0 -77
  46. package/lib/ach.js +0 -59
  47. package/lib/address.js +0 -266
  48. package/lib/aes.js +0 -57
  49. package/lib/aescbc.js +0 -38
  50. package/lib/base-58-check.js +0 -83
  51. package/lib/base-58.js +0 -59
  52. package/lib/bip-32.js +0 -472
  53. package/lib/bip-39-en-wordlist.js +0 -2054
  54. package/lib/bip-39-en.js +0 -10
  55. package/lib/bip-39-es-wordlist.js +0 -2055
  56. package/lib/bip-39-es.js +0 -10
  57. package/lib/bip-39-jp-wordlist.js +0 -2053
  58. package/lib/bip-39-jp.js +0 -10
  59. package/lib/bip-39-words.js +0 -5
  60. package/lib/bip-39.js +0 -286
  61. package/lib/block-header.js +0 -79
  62. package/lib/block.js +0 -132
  63. package/lib/bn.js +0 -462
  64. package/lib/br.js +0 -172
  65. package/lib/bsm.js +0 -127
  66. package/lib/bw.js +0 -188
  67. package/lib/cbc.js +0 -140
  68. package/lib/cmp.js +0 -37
  69. package/lib/config.js +0 -50
  70. package/lib/constants.js +0 -150
  71. package/lib/ecdsa.js +0 -496
  72. package/lib/ecies.js +0 -151
  73. package/lib/hash-cache.js +0 -41
  74. package/lib/hash.js +0 -191
  75. package/lib/interp.js +0 -2017
  76. package/lib/inv.js +0 -49
  77. package/lib/key-pair.js +0 -133
  78. package/lib/mainnet-address.js +0 -5
  79. package/lib/mainnet-bip-32.js +0 -5
  80. package/lib/mainnet-key-pair.js +0 -5
  81. package/lib/mainnet-priv-key.js +0 -5
  82. package/lib/merkle.js +0 -92
  83. package/lib/msg.js +0 -184
  84. package/lib/op-code.js +0 -400
  85. package/lib/point.js +0 -134
  86. package/lib/priv-key.js +0 -157
  87. package/lib/pub-key.js +0 -230
  88. package/lib/random.js +0 -28
  89. package/lib/script.js +0 -828
  90. package/lib/sig-operations.js +0 -120
  91. package/lib/sig.js +0 -399
  92. package/lib/struct.js +0 -392
  93. package/lib/testnet-address.js +0 -5
  94. package/lib/testnet-bip-32.js +0 -5
  95. package/lib/testnet-key-pair.js +0 -5
  96. package/lib/testnet-priv-key.js +0 -5
  97. package/lib/tx-builder.js +0 -593
  98. package/lib/tx-in.js +0 -172
  99. package/lib/tx-out-map.js +0 -57
  100. package/lib/tx-out.js +0 -73
  101. package/lib/tx-verifier.js +0 -209
  102. package/lib/tx.js +0 -430
  103. package/lib/var-int.js +0 -73
  104. package/lib/version.js +0 -92
  105. package/lib/workers-result.js +0 -65
  106. package/lib/workers.js +0 -77
  107. package/load-babel.js +0 -5
  108. package/mtest/test.html +0 -17
  109. package/mtest/test.js +0 -2
  110. package/mtest/test.mjs +0 -2
  111. package/mtest/webpack.config.js +0 -115
  112. package/out/Sig.html +0 -541
  113. package/out/bip-32.js.html +0 -523
  114. package/out/bip-39.js.html +0 -336
  115. package/out/block.js.html +0 -183
  116. package/out/bn.js.html +0 -512
  117. package/out/ecdsa.js.html +0 -546
  118. package/out/fonts/OpenSans-Bold-webfont.eot +0 -0
  119. package/out/fonts/OpenSans-Bold-webfont.svg +0 -1830
  120. package/out/fonts/OpenSans-Bold-webfont.woff +0 -0
  121. package/out/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  122. package/out/fonts/OpenSans-BoldItalic-webfont.svg +0 -1830
  123. package/out/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  124. package/out/fonts/OpenSans-Italic-webfont.eot +0 -0
  125. package/out/fonts/OpenSans-Italic-webfont.svg +0 -1830
  126. package/out/fonts/OpenSans-Italic-webfont.woff +0 -0
  127. package/out/fonts/OpenSans-Light-webfont.eot +0 -0
  128. package/out/fonts/OpenSans-Light-webfont.svg +0 -1831
  129. package/out/fonts/OpenSans-Light-webfont.woff +0 -0
  130. package/out/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  131. package/out/fonts/OpenSans-LightItalic-webfont.svg +0 -1835
  132. package/out/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  133. package/out/fonts/OpenSans-Regular-webfont.eot +0 -0
  134. package/out/fonts/OpenSans-Regular-webfont.svg +0 -1831
  135. package/out/fonts/OpenSans-Regular-webfont.woff +0 -0
  136. package/out/global.html +0 -220
  137. package/out/index.html +0 -128
  138. package/out/interp.js.html +0 -2064
  139. package/out/merkle.js.html +0 -143
  140. package/out/msg.js.html +0 -235
  141. package/out/priv-key.js.html +0 -208
  142. package/out/pub-key.js.html +0 -281
  143. package/out/script.js.html +0 -876
  144. package/out/scripts/linenumber.js +0 -25
  145. package/out/scripts/prettify/Apache-License-2.0.txt +0 -202
  146. package/out/scripts/prettify/lang-css.js +0 -2
  147. package/out/scripts/prettify/prettify.js +0 -28
  148. package/out/sig-operations.js.html +0 -171
  149. package/out/sig.js.html +0 -450
  150. package/out/struct.js.html +0 -440
  151. package/out/styles/jsdoc-default.css +0 -358
  152. package/out/styles/prettify-jsdoc.css +0 -111
  153. package/out/styles/prettify-tomorrow.css +0 -132
  154. package/out/tx-builder.js.html +0 -644
  155. package/out/tx-in.js.html +0 -223
  156. package/out/tx-verifier.js.html +0 -260
  157. package/out/tx.js.html +0 -481
  158. package/test/ach.js +0 -172
  159. package/test/address.js +0 -464
  160. package/test/aes.js +0 -96
  161. package/test/aescbc.js +0 -65
  162. package/test/base-58-check.js +0 -128
  163. package/test/base-58.js +0 -113
  164. package/test/bip-32.js +0 -721
  165. package/test/bip-39.js +0 -282
  166. package/test/block-header.js +0 -152
  167. package/test/block.js +0 -243
  168. package/test/bn.js +0 -643
  169. package/test/br.js +0 -353
  170. package/test/bsm.js +0 -141
  171. package/test/bw.js +0 -292
  172. package/test/cbc.js +0 -335
  173. package/test/cmp.js +0 -56
  174. package/test/data/bip69.json +0 -215
  175. package/test/data/bitcoind/base58_keys_invalid.json +0 -152
  176. package/test/data/bitcoind/base58_keys_valid.json +0 -452
  177. package/test/data/bitcoind/blocks.json +0 -27
  178. package/test/data/bitcoind/script_tests.json +0 -2244
  179. package/test/data/bitcoind/sig_canonical.json +0 -7
  180. package/test/data/bitcoind/sig_noncanonical.json +0 -22
  181. package/test/data/bitcoind/tx_invalid.json +0 -177
  182. package/test/data/bitcoind/tx_valid.json +0 -224
  183. package/test/data/blk86756-testnet.dat +0 -0
  184. package/test/data/blk86756-testnet.js +0 -12
  185. package/test/data/blk86756-testnet.json +0 -684
  186. package/test/data/ecdsa.json +0 -230
  187. package/test/data/messages.json +0 -22
  188. package/test/data/sighash.json +0 -1004
  189. package/test/data/tx_creation.json +0 -85
  190. package/test/ecdsa.js +0 -748
  191. package/test/ecies.js +0 -238
  192. package/test/global.js +0 -13
  193. package/test/hash-cache.js +0 -52
  194. package/test/hash.js +0 -354
  195. package/test/index.js +0 -10
  196. package/test/interp.js +0 -512
  197. package/test/inv.js +0 -65
  198. package/test/key-pair.js +0 -243
  199. package/test/merkle.js +0 -179
  200. package/test/msg.js +0 -295
  201. package/test/op-code.js +0 -79
  202. package/test/point.js +0 -375
  203. package/test/priv-key.js +0 -264
  204. package/test/pub-key.js +0 -549
  205. package/test/random.js +0 -31
  206. package/test/script.js +0 -1340
  207. package/test/sig-operations.js +0 -149
  208. package/test/sig.js +0 -662
  209. package/test/struct.js +0 -552
  210. package/test/tx-builder.js +0 -2104
  211. package/test/tx-in.js +0 -198
  212. package/test/tx-out-map.js +0 -104
  213. package/test/tx-out.js +0 -162
  214. package/test/tx-verifier.js +0 -246
  215. package/test/tx.js +0 -539
  216. package/test/var-int.js +0 -132
  217. package/test/vectors/aes.json +0 -10392
  218. package/test/vectors/aescbc.json +0 -620
  219. package/test/vectors/bip39.json +0 -502
  220. package/test/vectors/bip69.json +0 -215
  221. package/test/vectors/bitcoin-abc/script_tests.json +0 -48
  222. package/test/vectors/bitcoin-abc/sighash.json +0 -7004
  223. package/test/vectors/bitcoin-sv/script_tests.json +0 -248
  224. package/test/vectors/bitcoind/script_invalid.json +0 -1151
  225. package/test/vectors/bitcoind/script_valid.json +0 -1462
  226. package/test/vectors/bitcoind/sighash.json +0 -3503
  227. package/test/vectors/bitcoind/tx_invalid.json +0 -883
  228. package/test/vectors/bitcoind/tx_valid.json +0 -1150
  229. package/test/vectors/coolest-tx-ever-sent.json +0 -8
  230. package/test/vectors/ecdsa.json +0 -300
  231. package/test/vectors/hash.json +0 -6133
  232. package/test/vectors/kdf.json +0 -47
  233. package/test/vectors/largesttx.json +0 -5
  234. package/test/vectors/largesttxblock.json +0 -6
  235. package/test/vectors/sig.json +0 -79
  236. package/test/vectors/sighash-single-bug.json +0 -8
  237. package/test/version.js +0 -81
  238. package/test/workers-result.js +0 -89
  239. package/test/workers.js +0 -91
  240. package/test-index.js +0 -3
  241. package/vite.config.js +0 -36
@@ -1,883 +0,0 @@
1
- [
2
- ["The following are deserialized transactions which are invalid."],
3
- ["They are in the form"],
4
- ["[[[prevout hash, prevout index, prevout scriptPubKey], [input 2], ...],"],
5
- ["serializedTransaction, verifyFlags]"],
6
- ["Objects that are only a single string (like this one) are ignored"],
7
-
8
- [
9
- "0e1b5688cf179cd9f7cbda1fac0090f6e684bbf8cd946660120197c3f3681809 but with extra junk appended to the end of the scriptPubKey"
10
- ],
11
- [
12
- [
13
- [
14
- "6ca7ec7b1847f6bdbd737176050e6a08d66ccd55bb94ad24f4018024107a5827",
15
- 0,
16
- "0x41 0x043b640e983c9690a14c039a2037ecc3467b27a0dcd58f19d76c7bc118d09fec45adc5370a1c5bf8067ca9f5557a4cf885fdb0fe0dcc9c3a7137226106fbc779a5 CHECKSIG VERIFY 1"
17
- ]
18
- ],
19
- "010000000127587a10248001f424ad94bb55cd6cd6086a0e05767173bdbdf647187beca76c000000004948304502201b822ad10d6adc1a341ae8835be3f70a25201bbff31f59cbb9c5353a5f0eca18022100ea7b2f7074e9aa9cf70aa8d0ffee13e6b45dddabf1ab961bda378bcdb778fa4701ffffffff0100f2052a010000001976a914fc50c5907d86fed474ba5ce8b12a66e0a4c139d888ac00000000",
20
- "P2SH"
21
- ],
22
-
23
- [
24
- "This is the nearly-standard transaction with CHECKSIGVERIFY 1 instead of CHECKSIG from tx_valid.json"
25
- ],
26
- [
27
- "but with the signature duplicated in the scriptPubKey with a non-standard pushdata prefix"
28
- ],
29
- [
30
- "See FindAndDelete, which will only remove if it uses the same pushdata prefix as is standard"
31
- ],
32
- [
33
- [
34
- [
35
- "0000000000000000000000000000000000000000000000000000000000000100",
36
- 0,
37
- "DUP HASH160 0x14 0x5b6462475454710f3c22f5fdf0b40704c92f25c3 EQUALVERIFY CHECKSIGVERIFY 1 0x4c 0x47 0x3044022067288ea50aa799543a536ff9306f8e1cba05b9c6b10951175b924f96732555ed022026d7b5265f38d21541519e4a1e55044d5b9e17e15cdbaf29ae3792e99e883e7a01"
38
- ]
39
- ],
40
- "01000000010001000000000000000000000000000000000000000000000000000000000000000000006a473044022067288ea50aa799543a536ff9306f8e1cba05b9c6b10951175b924f96732555ed022026d7b5265f38d21541519e4a1e55044d5b9e17e15cdbaf29ae3792e99e883e7a012103ba8c8b86dea131c22ab967e6dd99bdae8eff7a1f75a2c35f1f944109e3fe5e22ffffffff010000000000000000015100000000",
41
- "P2SH"
42
- ],
43
-
44
- [
45
- "Same as above, but with the sig in the scriptSig also pushed with the same non-standard OP_PUSHDATA"
46
- ],
47
- [
48
- [
49
- [
50
- "0000000000000000000000000000000000000000000000000000000000000100",
51
- 0,
52
- "DUP HASH160 0x14 0x5b6462475454710f3c22f5fdf0b40704c92f25c3 EQUALVERIFY CHECKSIGVERIFY 1 0x4c 0x47 0x3044022067288ea50aa799543a536ff9306f8e1cba05b9c6b10951175b924f96732555ed022026d7b5265f38d21541519e4a1e55044d5b9e17e15cdbaf29ae3792e99e883e7a01"
53
- ]
54
- ],
55
- "01000000010001000000000000000000000000000000000000000000000000000000000000000000006b4c473044022067288ea50aa799543a536ff9306f8e1cba05b9c6b10951175b924f96732555ed022026d7b5265f38d21541519e4a1e55044d5b9e17e15cdbaf29ae3792e99e883e7a012103ba8c8b86dea131c22ab967e6dd99bdae8eff7a1f75a2c35f1f944109e3fe5e22ffffffff010000000000000000015100000000",
56
- "P2SH"
57
- ],
58
-
59
- [
60
- "This is the nearly-standard transaction with CHECKSIGVERIFY 1 instead of CHECKSIG from tx_valid.json"
61
- ],
62
- [
63
- "but with the signature duplicated in the scriptPubKey with a different hashtype suffix"
64
- ],
65
- [
66
- "See FindAndDelete, which will only remove if the signature, including the hash type, matches"
67
- ],
68
- [
69
- [
70
- [
71
- "0000000000000000000000000000000000000000000000000000000000000100",
72
- 0,
73
- "DUP HASH160 0x14 0x5b6462475454710f3c22f5fdf0b40704c92f25c3 EQUALVERIFY CHECKSIGVERIFY 1 0x47 0x3044022067288ea50aa799543a536ff9306f8e1cba05b9c6b10951175b924f96732555ed022026d7b5265f38d21541519e4a1e55044d5b9e17e15cdbaf29ae3792e99e883e7a81"
74
- ]
75
- ],
76
- "01000000010001000000000000000000000000000000000000000000000000000000000000000000006a473044022067288ea50aa799543a536ff9306f8e1cba05b9c6b10951175b924f96732555ed022026d7b5265f38d21541519e4a1e55044d5b9e17e15cdbaf29ae3792e99e883e7a012103ba8c8b86dea131c22ab967e6dd99bdae8eff7a1f75a2c35f1f944109e3fe5e22ffffffff010000000000000000015100000000",
77
- "P2SH"
78
- ],
79
-
80
- ["An invalid P2SH Transaction"],
81
- [
82
- [
83
- [
84
- "0000000000000000000000000000000000000000000000000000000000000100",
85
- 0,
86
- "HASH160 0x14 0x7a052c840ba73af26755de42cf01cc9e0a49fef0 EQUAL"
87
- ]
88
- ],
89
- "010000000100010000000000000000000000000000000000000000000000000000000000000000000009085768617420697320ffffffff010000000000000000015100000000",
90
- "P2SH"
91
- ],
92
-
93
- ["Tests for CheckTransaction()"],
94
- ["No inputs"],
95
- [
96
- [
97
- [
98
- "0000000000000000000000000000000000000000000000000000000000000100",
99
- 0,
100
- "HASH160 0x14 0x7a052c840ba73af26755de42cf01cc9e0a49fef0 EQUAL"
101
- ]
102
- ],
103
- "0100000000010000000000000000015100000000",
104
- "P2SH"
105
- ],
106
-
107
- ["No outputs"],
108
- [
109
- [
110
- [
111
- "0000000000000000000000000000000000000000000000000000000000000100",
112
- 0,
113
- "HASH160 0x14 0x05ab9e14d983742513f0f451e105ffb4198d1dd4 EQUAL"
114
- ]
115
- ],
116
- "01000000010001000000000000000000000000000000000000000000000000000000000000000000006d483045022100f16703104aab4e4088317c862daec83440242411b039d14280e03dd33b487ab802201318a7be236672c5c56083eb7a5a195bc57a40af7923ff8545016cd3b571e2a601232103c40e5d339df3f30bf753e7e04450ae4ef76c9e45587d1d993bdc4cd06f0651c7acffffffff0000000000",
117
- "P2SH"
118
- ],
119
-
120
- ["Negative output"],
121
- [
122
- [
123
- [
124
- "0000000000000000000000000000000000000000000000000000000000000100",
125
- 0,
126
- "HASH160 0x14 0xae609aca8061d77c5e111f6bb62501a6bbe2bfdb EQUAL"
127
- ]
128
- ],
129
- "01000000010001000000000000000000000000000000000000000000000000000000000000000000006d4830450220063222cbb128731fc09de0d7323746539166544d6c1df84d867ccea84bcc8903022100bf568e8552844de664cd41648a031554327aa8844af34b4f27397c65b92c04de0123210243ec37dee0e2e053a9c976f43147e79bc7d9dc606ea51010af1ac80db6b069e1acffffffff01ffffffffffffffff015100000000",
130
- "P2SH"
131
- ],
132
-
133
- ["MAX_MONEY + 1 output"],
134
- [
135
- [
136
- [
137
- "0000000000000000000000000000000000000000000000000000000000000100",
138
- 0,
139
- "HASH160 0x14 0x32afac281462b822adbec5094b8d4d337dd5bd6a EQUAL"
140
- ]
141
- ],
142
- "01000000010001000000000000000000000000000000000000000000000000000000000000000000006e493046022100e1eadba00d9296c743cb6ecc703fd9ddc9b3cd12906176a226ae4c18d6b00796022100a71aef7d2874deff681ba6080f1b278bac7bb99c61b08a85f4311970ffe7f63f012321030c0588dc44d92bdcbf8e72093466766fdc265ead8db64517b0c542275b70fffbacffffffff010140075af0750700015100000000",
143
- "P2SH"
144
- ],
145
-
146
- ["MAX_MONEY output + 1 output"],
147
- [
148
- [
149
- [
150
- "0000000000000000000000000000000000000000000000000000000000000100",
151
- 0,
152
- "HASH160 0x14 0xb558cbf4930954aa6a344363a15668d7477ae716 EQUAL"
153
- ]
154
- ],
155
- "01000000010001000000000000000000000000000000000000000000000000000000000000000000006d483045022027deccc14aa6668e78a8c9da3484fbcd4f9dcc9bb7d1b85146314b21b9ae4d86022100d0b43dece8cfb07348de0ca8bc5b86276fa88f7f2138381128b7c36ab2e42264012321029bb13463ddd5d2cc05da6e84e37536cb9525703cfd8f43afdb414988987a92f6acffffffff020040075af075070001510001000000000000015100000000",
156
- "P2SH"
157
- ],
158
-
159
- ["Duplicate inputs"],
160
- [
161
- [
162
- [
163
- "0000000000000000000000000000000000000000000000000000000000000100",
164
- 0,
165
- "HASH160 0x14 0x236d0639db62b0773fd8ac34dc85ae19e9aba80a EQUAL"
166
- ]
167
- ],
168
- "01000000020001000000000000000000000000000000000000000000000000000000000000000000006c47304402204bb1197053d0d7799bf1b30cd503c44b58d6240cccbdc85b6fe76d087980208f02204beeed78200178ffc6c74237bb74b3f276bbb4098b5605d814304fe128bf1431012321039e8815e15952a7c3fada1905f8cf55419837133bd7756c0ef14fc8dfe50c0deaacffffffff0001000000000000000000000000000000000000000000000000000000000000000000006c47304402202306489afef52a6f62e90bf750bbcdf40c06f5c6b138286e6b6b86176bb9341802200dba98486ea68380f47ebb19a7df173b99e6bc9c681d6ccf3bde31465d1f16b3012321039e8815e15952a7c3fada1905f8cf55419837133bd7756c0ef14fc8dfe50c0deaacffffffff010000000000000000015100000000",
169
- "P2SH"
170
- ],
171
-
172
- ["Coinbase of size 1"],
173
- ["Note the input is just required to make the tester happy"],
174
- [
175
- [
176
- [
177
- "0000000000000000000000000000000000000000000000000000000000000000",
178
- -1,
179
- "1"
180
- ]
181
- ],
182
- "01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff0151ffffffff010000000000000000015100000000",
183
- "P2SH"
184
- ],
185
-
186
- ["Coinbase of size 101"],
187
- ["Note the input is just required to make the tester happy"],
188
- [
189
- [
190
- [
191
- "0000000000000000000000000000000000000000000000000000000000000000",
192
- -1,
193
- "1"
194
- ]
195
- ],
196
- "01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff655151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151ffffffff010000000000000000015100000000",
197
- "P2SH"
198
- ],
199
-
200
- ["Null txin, but without being a coinbase (because there are two inputs)"],
201
- [
202
- [
203
- [
204
- "0000000000000000000000000000000000000000000000000000000000000000",
205
- -1,
206
- "1"
207
- ],
208
- [
209
- "0000000000000000000000000000000000000000000000000000000000000100",
210
- 0,
211
- "1"
212
- ]
213
- ],
214
- "01000000020000000000000000000000000000000000000000000000000000000000000000ffffffff00ffffffff00010000000000000000000000000000000000000000000000000000000000000000000000ffffffff010000000000000000015100000000",
215
- "P2SH"
216
- ],
217
- [
218
- [
219
- [
220
- "0000000000000000000000000000000000000000000000000000000000000100",
221
- 0,
222
- "1"
223
- ],
224
- [
225
- "0000000000000000000000000000000000000000000000000000000000000000",
226
- -1,
227
- "1"
228
- ]
229
- ],
230
- "010000000200010000000000000000000000000000000000000000000000000000000000000000000000ffffffff0000000000000000000000000000000000000000000000000000000000000000ffffffff00ffffffff010000000000000000015100000000",
231
- "P2SH"
232
- ],
233
-
234
- [
235
- "Same as the transactions in valid with one input SIGHASH_ALL and one SIGHASH_ANYONECANPAY, but we set the _ANYONECANPAY sequence number, invalidating the SIGHASH_ALL signature"
236
- ],
237
- [
238
- [
239
- [
240
- "0000000000000000000000000000000000000000000000000000000000000100",
241
- 0,
242
- "0x21 0x035e7f0d4d0841bcd56c39337ed086b1a633ee770c1ffdd94ac552a95ac2ce0efc CHECKSIG"
243
- ],
244
- [
245
- "0000000000000000000000000000000000000000000000000000000000000200",
246
- 0,
247
- "0x21 0x035e7f0d4d0841bcd56c39337ed086b1a633ee770c1ffdd94ac552a95ac2ce0efc CHECKSIG"
248
- ]
249
- ],
250
- "01000000020001000000000000000000000000000000000000000000000000000000000000000000004948304502203a0f5f0e1f2bdbcd04db3061d18f3af70e07f4f467cbc1b8116f267025f5360b022100c792b6e215afc5afc721a351ec413e714305cb749aae3d7fee76621313418df10101000000000200000000000000000000000000000000000000000000000000000000000000000000484730440220201dc2d030e380e8f9cfb41b442d930fa5a685bb2c8db5906671f865507d0670022018d9e7a8d4c8d86a73c2a724ee38ef983ec249827e0e464841735955c707ece98101000000010100000000000000015100000000",
251
- "P2SH"
252
- ],
253
-
254
- ["CHECKMULTISIG with incorrect signature order"],
255
- ["Note the input is just required to make the tester happy"],
256
- [
257
- [
258
- [
259
- "b3da01dd4aae683c7aee4d5d8b52a540a508e1115f77cd7fa9a291243f501223",
260
- 0,
261
- "HASH160 0x14 0xb1ce99298d5f07364b57b1e5c9cc00be0b04a954 EQUAL"
262
- ]
263
- ],
264
- "01000000012312503f2491a2a97fcd775f11e108a540a5528b5d4dee7a3c68ae4add01dab300000000fdfe000048304502207aacee820e08b0b174e248abd8d7a34ed63b5da3abedb99934df9fddd65c05c4022100dfe87896ab5ee3df476c2655f9fbe5bd089dccbef3e4ea05b5d121169fe7f5f401483045022100f6649b0eddfdfd4ad55426663385090d51ee86c3481bdc6b0c18ea6c0ece2c0b0220561c315b07cffa6f7dd9df96dbae9200c2dee09bf93cc35ca05e6cdf613340aa014c695221031d11db38972b712a9fe1fc023577c7ae3ddb4a3004187d41c45121eecfdbb5b7210207ec36911b6ad2382860d32989c7b8728e9489d7bbc94a6b5509ef0029be128821024ea9fac06f666a4adc3fc1357b7bec1fd0bdece2b9d08579226a8ebde53058e453aeffffffff0180380100000000001976a914c9b99cddf847d10685a4fabaa0baf505f7c3dfab88ac00000000",
265
- "P2SH"
266
- ],
267
-
268
- [
269
- "The following is a tweaked form of 23b397edccd3740a74adb603c9756370fafcde9bcc4483eb271ecad09a94dd63"
270
- ],
271
- ["It is an OP_CHECKMULTISIG with the dummy value missing"],
272
- [
273
- [
274
- [
275
- "60a20bd93aa49ab4b28d514ec10b06e1829ce6818ec06cd3aabd013ebcdc4bb1",
276
- 0,
277
- "1 0x41 0x04cc71eb30d653c0c3163990c47b976f3fb3f37cccdcbedb169a1dfef58bbfbfaff7d8a473e7e2e6d317b87bafe8bde97e3cf8f065dec022b51d11fcdd0d348ac4 0x41 0x0461cbdcc5409fb4b4d42b51d33381354d80e550078cb532a34bfa2fcfdeb7d76519aecc62770f5b0e4ef8551946d8a540911abe3e7854a26f39f58b25c15342af 2 OP_CHECKMULTISIG"
278
- ]
279
- ],
280
- "0100000001b14bdcbc3e01bdaad36cc08e81e69c82e1060bc14e518db2b49aa43ad90ba260000000004847304402203f16c6f40162ab686621ef3000b04e75418a0c0cb2d8aebeac894ae360ac1e780220ddc15ecdfc3507ac48e1681a33eb60996631bf6bf5bc0a0682c4db743ce7ca2b01ffffffff0140420f00000000001976a914660d4ef3a743e3e696ad990364e555c271ad504b88ac00000000",
281
- "P2SH"
282
- ],
283
-
284
- ["CHECKMULTISIG SCRIPT_VERIFY_NULLDUMMY tests:"],
285
-
286
- [
287
- "The following is a tweaked form of 23b397edccd3740a74adb603c9756370fafcde9bcc4483eb271ecad09a94dd63"
288
- ],
289
- [
290
- "It is an OP_CHECKMULTISIG with the dummy value set to something other than an empty string"
291
- ],
292
- [
293
- [
294
- [
295
- "60a20bd93aa49ab4b28d514ec10b06e1829ce6818ec06cd3aabd013ebcdc4bb1",
296
- 0,
297
- "1 0x41 0x04cc71eb30d653c0c3163990c47b976f3fb3f37cccdcbedb169a1dfef58bbfbfaff7d8a473e7e2e6d317b87bafe8bde97e3cf8f065dec022b51d11fcdd0d348ac4 0x41 0x0461cbdcc5409fb4b4d42b51d33381354d80e550078cb532a34bfa2fcfdeb7d76519aecc62770f5b0e4ef8551946d8a540911abe3e7854a26f39f58b25c15342af 2 OP_CHECKMULTISIG"
298
- ]
299
- ],
300
- "0100000001b14bdcbc3e01bdaad36cc08e81e69c82e1060bc14e518db2b49aa43ad90ba260000000004a010047304402203f16c6f40162ab686621ef3000b04e75418a0c0cb2d8aebeac894ae360ac1e780220ddc15ecdfc3507ac48e1681a33eb60996631bf6bf5bc0a0682c4db743ce7ca2b01ffffffff0140420f00000000001976a914660d4ef3a743e3e696ad990364e555c271ad504b88ac00000000",
301
- "P2SH,NULLDUMMY"
302
- ],
303
-
304
- ["As above, but using a OP_1"],
305
- [
306
- [
307
- [
308
- "60a20bd93aa49ab4b28d514ec10b06e1829ce6818ec06cd3aabd013ebcdc4bb1",
309
- 0,
310
- "1 0x41 0x04cc71eb30d653c0c3163990c47b976f3fb3f37cccdcbedb169a1dfef58bbfbfaff7d8a473e7e2e6d317b87bafe8bde97e3cf8f065dec022b51d11fcdd0d348ac4 0x41 0x0461cbdcc5409fb4b4d42b51d33381354d80e550078cb532a34bfa2fcfdeb7d76519aecc62770f5b0e4ef8551946d8a540911abe3e7854a26f39f58b25c15342af 2 OP_CHECKMULTISIG"
311
- ]
312
- ],
313
- "0100000001b14bdcbc3e01bdaad36cc08e81e69c82e1060bc14e518db2b49aa43ad90ba26000000000495147304402203f16c6f40162ab686621ef3000b04e75418a0c0cb2d8aebeac894ae360ac1e780220ddc15ecdfc3507ac48e1681a33eb60996631bf6bf5bc0a0682c4db743ce7ca2b01ffffffff0140420f00000000001976a914660d4ef3a743e3e696ad990364e555c271ad504b88ac00000000",
314
- "P2SH,NULLDUMMY"
315
- ],
316
-
317
- ["As above, but using a OP_1NEGATE"],
318
- [
319
- [
320
- [
321
- "60a20bd93aa49ab4b28d514ec10b06e1829ce6818ec06cd3aabd013ebcdc4bb1",
322
- 0,
323
- "1 0x41 0x04cc71eb30d653c0c3163990c47b976f3fb3f37cccdcbedb169a1dfef58bbfbfaff7d8a473e7e2e6d317b87bafe8bde97e3cf8f065dec022b51d11fcdd0d348ac4 0x41 0x0461cbdcc5409fb4b4d42b51d33381354d80e550078cb532a34bfa2fcfdeb7d76519aecc62770f5b0e4ef8551946d8a540911abe3e7854a26f39f58b25c15342af 2 OP_CHECKMULTISIG"
324
- ]
325
- ],
326
- "0100000001b14bdcbc3e01bdaad36cc08e81e69c82e1060bc14e518db2b49aa43ad90ba26000000000494f47304402203f16c6f40162ab686621ef3000b04e75418a0c0cb2d8aebeac894ae360ac1e780220ddc15ecdfc3507ac48e1681a33eb60996631bf6bf5bc0a0682c4db743ce7ca2b01ffffffff0140420f00000000001976a914660d4ef3a743e3e696ad990364e555c271ad504b88ac00000000",
327
- "P2SH,NULLDUMMY"
328
- ],
329
-
330
- ["As above, but with the dummy byte missing"],
331
- [
332
- [
333
- [
334
- "60a20bd93aa49ab4b28d514ec10b06e1829ce6818ec06cd3aabd013ebcdc4bb1",
335
- 0,
336
- "1 0x41 0x04cc71eb30d653c0c3163990c47b976f3fb3f37cccdcbedb169a1dfef58bbfbfaff7d8a473e7e2e6d317b87bafe8bde97e3cf8f065dec022b51d11fcdd0d348ac4 0x41 0x0461cbdcc5409fb4b4d42b51d33381354d80e550078cb532a34bfa2fcfdeb7d76519aecc62770f5b0e4ef8551946d8a540911abe3e7854a26f39f58b25c15342af 2 OP_CHECKMULTISIG"
337
- ]
338
- ],
339
- "0100000001b14bdcbc3e01bdaad36cc08e81e69c82e1060bc14e518db2b49aa43ad90ba260000000004847304402203f16c6f40162ab686621ef3000b04e75418a0c0cb2d8aebeac894ae360ac1e780220ddc15ecdfc3507ac48e1681a33eb60996631bf6bf5bc0a0682c4db743ce7ca2b01ffffffff0140420f00000000001976a914660d4ef3a743e3e696ad990364e555c271ad504b88ac00000000",
340
- "P2SH,NULLDUMMY"
341
- ],
342
-
343
- ["Empty stack when we try to run CHECKSIG"],
344
- [
345
- [
346
- [
347
- "ad503f72c18df5801ee64d76090afe4c607fb2b822e9b7b63c5826c50e22fc3b",
348
- 0,
349
- "0x21 0x027c3a97665bf283a102a587a62a30a0c102d4d3b141015e2cae6f64e2543113e5 CHECKSIG NOT"
350
- ]
351
- ],
352
- "01000000013bfc220ec526583cb6b7e922b8b27f604cfe0a09764de61e80f58dc1723f50ad0000000000ffffffff0101000000000000002321027c3a97665bf283a102a587a62a30a0c102d4d3b141015e2cae6f64e2543113e5ac00000000",
353
- "P2SH"
354
- ],
355
-
356
- ["Inverted versions of tx_valid CODESEPARATOR IF block tests"],
357
-
358
- ["CODESEPARATOR in an unexecuted IF block does not change what is hashed"],
359
- [
360
- [
361
- [
362
- "a955032f4d6b0c9bfe8cad8f00a8933790b9c1dc28c82e0f48e75b35da0e4944",
363
- 0,
364
- "IF CODESEPARATOR ENDIF 0x21 0x0378d430274f8c5ec1321338151e9f27f4c676a008bdf8638d07c0b6be9ab35c71 CHECKSIGVERIFY CODESEPARATOR 1"
365
- ]
366
- ],
367
- "010000000144490eda355be7480f2ec828dcc1b9903793a8008fad8cfe9b0c6b4d2f0355a9000000004a48304502207a6974a77c591fa13dff60cabbb85a0de9e025c09c65a4b2285e47ce8e22f761022100f0efaac9ff8ac36b10721e0aae1fb975c90500b50c56e8a0cc52b0403f0425dd0151ffffffff010000000000000000016a00000000",
368
- "P2SH"
369
- ],
370
-
371
- ["As above, with the IF block executed"],
372
- [
373
- [
374
- [
375
- "a955032f4d6b0c9bfe8cad8f00a8933790b9c1dc28c82e0f48e75b35da0e4944",
376
- 0,
377
- "IF CODESEPARATOR ENDIF 0x21 0x0378d430274f8c5ec1321338151e9f27f4c676a008bdf8638d07c0b6be9ab35c71 CHECKSIGVERIFY CODESEPARATOR 1"
378
- ]
379
- ],
380
- "010000000144490eda355be7480f2ec828dcc1b9903793a8008fad8cfe9b0c6b4d2f0355a9000000004a483045022100fa4a74ba9fd59c59f46c3960cf90cbe0d2b743c471d24a3d5d6db6002af5eebb02204d70ec490fd0f7055a7c45f86514336e3a7f03503dacecabb247fc23f15c83510100ffffffff010000000000000000016a00000000",
381
- "P2SH"
382
- ],
383
-
384
- ["CHECKLOCKTIMEVERIFY tests"],
385
-
386
- ["By-height locks, with argument just beyond tx nLockTime"],
387
- [
388
- [
389
- [
390
- "0000000000000000000000000000000000000000000000000000000000000100",
391
- 0,
392
- "1 CHECKLOCKTIMEVERIFY 1"
393
- ]
394
- ],
395
- "010000000100010000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000",
396
- "P2SH,CHECKLOCKTIMEVERIFY"
397
- ],
398
- [
399
- [
400
- [
401
- "0000000000000000000000000000000000000000000000000000000000000100",
402
- 0,
403
- "499999999 CHECKLOCKTIMEVERIFY 1"
404
- ]
405
- ],
406
- "0100000001000100000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000fe64cd1d",
407
- "P2SH,CHECKLOCKTIMEVERIFY"
408
- ],
409
-
410
- [
411
- "By-time locks, with argument just beyond tx nLockTime (but within numerical boundaries)"
412
- ],
413
- [
414
- [
415
- [
416
- "0000000000000000000000000000000000000000000000000000000000000100",
417
- 0,
418
- "500000001 CHECKLOCKTIMEVERIFY 1"
419
- ]
420
- ],
421
- "01000000010001000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000065cd1d",
422
- "P2SH,CHECKLOCKTIMEVERIFY"
423
- ],
424
- [
425
- [
426
- [
427
- "0000000000000000000000000000000000000000000000000000000000000100",
428
- 0,
429
- "4294967295 CHECKLOCKTIMEVERIFY 1"
430
- ]
431
- ],
432
- "0100000001000100000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000feffffff",
433
- "P2SH,CHECKLOCKTIMEVERIFY"
434
- ],
435
-
436
- ["Argument missing"],
437
- [
438
- [
439
- [
440
- "0000000000000000000000000000000000000000000000000000000000000100",
441
- 0,
442
- "CHECKLOCKTIMEVERIFY 1"
443
- ]
444
- ],
445
- "010000000100010000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000",
446
- "P2SH,CHECKLOCKTIMEVERIFY"
447
- ],
448
- [
449
- [
450
- [
451
- "0000000000000000000000000000000000000000000000000000000000000100",
452
- 0,
453
- "1"
454
- ]
455
- ],
456
- "010000000100010000000000000000000000000000000000000000000000000000000000000000000001b1010000000100000000000000000000000000",
457
- "P2SH,CHECKLOCKTIMEVERIFY"
458
- ],
459
-
460
- ["Argument negative with by-blockheight nLockTime=0"],
461
- [
462
- [
463
- [
464
- "0000000000000000000000000000000000000000000000000000000000000100",
465
- 0,
466
- "-1 CHECKLOCKTIMEVERIFY 1"
467
- ]
468
- ],
469
- "010000000100010000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000",
470
- "P2SH,CHECKLOCKTIMEVERIFY"
471
- ],
472
-
473
- ["Argument negative with by-blocktime nLockTime=500,000,000"],
474
- [
475
- [
476
- [
477
- "0000000000000000000000000000000000000000000000000000000000000100",
478
- 0,
479
- "-1 CHECKLOCKTIMEVERIFY 1"
480
- ]
481
- ],
482
- "01000000010001000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000065cd1d",
483
- "P2SH,CHECKLOCKTIMEVERIFY"
484
- ],
485
- [
486
- [
487
- [
488
- "0000000000000000000000000000000000000000000000000000000000000100",
489
- 0,
490
- "1"
491
- ]
492
- ],
493
- "010000000100010000000000000000000000000000000000000000000000000000000000000000000004005194b1010000000100000000000000000002000000",
494
- "P2SH,CHECKLOCKTIMEVERIFY"
495
- ],
496
-
497
- ["Input locked"],
498
- [
499
- [
500
- [
501
- "0000000000000000000000000000000000000000000000000000000000000100",
502
- 0,
503
- "0 CHECKLOCKTIMEVERIFY 1"
504
- ]
505
- ],
506
- "010000000100010000000000000000000000000000000000000000000000000000000000000000000000ffffffff0100000000000000000000000000",
507
- "P2SH,CHECKLOCKTIMEVERIFY"
508
- ],
509
- [
510
- [
511
- [
512
- "0000000000000000000000000000000000000000000000000000000000000100",
513
- 0,
514
- "0"
515
- ]
516
- ],
517
- "01000000010001000000000000000000000000000000000000000000000000000000000000000000000251b1ffffffff0100000000000000000002000000",
518
- "P2SH,CHECKLOCKTIMEVERIFY"
519
- ],
520
-
521
- [
522
- "Another input being unlocked isn't sufficient; the CHECKLOCKTIMEVERIFY-using input must be unlocked"
523
- ],
524
- [
525
- [
526
- [
527
- "0000000000000000000000000000000000000000000000000000000000000100",
528
- 0,
529
- "0 CHECKLOCKTIMEVERIFY 1"
530
- ],
531
- [
532
- "0000000000000000000000000000000000000000000000000000000000000200",
533
- 1,
534
- "1"
535
- ]
536
- ],
537
- "010000000200010000000000000000000000000000000000000000000000000000000000000000000000ffffffff00020000000000000000000000000000000000000000000000000000000000000100000000000000000100000000000000000000000000",
538
- "P2SH,CHECKLOCKTIMEVERIFY"
539
- ],
540
-
541
- ["Argument/tx height/time mismatch, both versions"],
542
- [
543
- [
544
- [
545
- "0000000000000000000000000000000000000000000000000000000000000100",
546
- 0,
547
- "0 CHECKLOCKTIMEVERIFY 1"
548
- ]
549
- ],
550
- "01000000010001000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000065cd1d",
551
- "P2SH,CHECKLOCKTIMEVERIFY"
552
- ],
553
- [
554
- [
555
- [
556
- "0000000000000000000000000000000000000000000000000000000000000100",
557
- 0,
558
- "0"
559
- ]
560
- ],
561
- "01000000010001000000000000000000000000000000000000000000000000000000000000000000000251b100000000010000000000000000000065cd1d",
562
- "P2SH,CHECKLOCKTIMEVERIFY"
563
- ],
564
- [
565
- [
566
- [
567
- "0000000000000000000000000000000000000000000000000000000000000100",
568
- 0,
569
- "499999999 CHECKLOCKTIMEVERIFY 1"
570
- ]
571
- ],
572
- "01000000010001000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000065cd1d",
573
- "P2SH,CHECKLOCKTIMEVERIFY"
574
- ],
575
- [
576
- [
577
- [
578
- "0000000000000000000000000000000000000000000000000000000000000100",
579
- 0,
580
- "500000000 CHECKLOCKTIMEVERIFY 1"
581
- ]
582
- ],
583
- "010000000100010000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000",
584
- "P2SH,CHECKLOCKTIMEVERIFY"
585
- ],
586
- [
587
- [
588
- [
589
- "0000000000000000000000000000000000000000000000000000000000000100",
590
- 0,
591
- "500000000 CHECKLOCKTIMEVERIFY 1"
592
- ]
593
- ],
594
- "0100000001000100000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000ff64cd1d",
595
- "P2SH,CHECKLOCKTIMEVERIFY"
596
- ],
597
-
598
- ["Argument 2^32 with nLockTime=2^32-1"],
599
- [
600
- [
601
- [
602
- "0000000000000000000000000000000000000000000000000000000000000100",
603
- 0,
604
- "4294967296 CHECKLOCKTIMEVERIFY 1"
605
- ]
606
- ],
607
- "0100000001000100000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000ffffffff",
608
- "P2SH,CHECKLOCKTIMEVERIFY"
609
- ],
610
-
611
- ["Same, but with nLockTime=2^31-1"],
612
- [
613
- [
614
- [
615
- "0000000000000000000000000000000000000000000000000000000000000100",
616
- 0,
617
- "2147483648 CHECKLOCKTIMEVERIFY 1"
618
- ]
619
- ],
620
- "0100000001000100000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000ffffff7f",
621
- "P2SH,CHECKLOCKTIMEVERIFY"
622
- ],
623
-
624
- [
625
- "6 byte non-minimally-encoded arguments are invalid even if their contents are valid"
626
- ],
627
- [
628
- [
629
- [
630
- "0000000000000000000000000000000000000000000000000000000000000100",
631
- 0,
632
- "0x06 0x000000000000 CHECKLOCKTIMEVERIFY 1"
633
- ]
634
- ],
635
- "010000000100010000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000",
636
- "P2SH,CHECKLOCKTIMEVERIFY"
637
- ],
638
-
639
- ["Failure due to failing CHECKLOCKTIMEVERIFY in scriptSig"],
640
- [
641
- [
642
- [
643
- "0000000000000000000000000000000000000000000000000000000000000100",
644
- 0,
645
- "1"
646
- ]
647
- ],
648
- "01000000010001000000000000000000000000000000000000000000000000000000000000000000000251b1000000000100000000000000000000000000",
649
- "P2SH,CHECKLOCKTIMEVERIFY"
650
- ],
651
-
652
- ["Failure due to failing CHECKLOCKTIMEVERIFY in redeemScript"],
653
- [
654
- [
655
- [
656
- "0000000000000000000000000000000000000000000000000000000000000100",
657
- 0,
658
- "HASH160 0x14 0xc5b93064159b3b2d6ab506a41b1f50463771b988 EQUAL"
659
- ]
660
- ],
661
- "0100000001000100000000000000000000000000000000000000000000000000000000000000000000030251b1000000000100000000000000000000000000",
662
- "P2SH,CHECKLOCKTIMEVERIFY"
663
- ],
664
-
665
- ["A transaction with a non-standard DER signature."],
666
- [
667
- [
668
- [
669
- "b1dbc81696c8a9c0fccd0693ab66d7c368dbc38c0def4e800685560ddd1b2132",
670
- 0,
671
- "DUP HASH160 0x14 0x4b3bd7eba3bc0284fd3007be7f3be275e94f5826 EQUALVERIFY CHECKSIG"
672
- ]
673
- ],
674
- "010000000132211bdd0d568506804eef0d8cc3db68c3d766ab9306cdfcc0a9c89616c8dbb1000000006c493045022100c7bb0faea0522e74ff220c20c022d2cb6033f8d167fb89e75a50e237a35fd6d202203064713491b1f8ad5f79e623d0219ad32510bfaa1009ab30cbee77b59317d6e30001210237af13eb2d84e4545af287b919c2282019c9691cc509e78e196a9d8274ed1be0ffffffff0100000000000000001976a914f1b3ed2eda9a2ebe5a9374f692877cdf87c0f95b88ac00000000",
675
- "P2SH,DERSIG"
676
- ],
677
-
678
- ["CHECKSEQUENCEVERIFY tests"],
679
-
680
- ["By-height locks, with argument just beyond txin.nSequence"],
681
- [
682
- [
683
- [
684
- "0000000000000000000000000000000000000000000000000000000000000100",
685
- 0,
686
- "1 NOP3 1"
687
- ]
688
- ],
689
- "020000000100010000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000",
690
- "P2SH,CHECKSEQUENCEVERIFY"
691
- ],
692
- [
693
- [
694
- [
695
- "0000000000000000000000000000000000000000000000000000000000000100",
696
- 0,
697
- "4259839 NOP3 1"
698
- ]
699
- ],
700
- "020000000100010000000000000000000000000000000000000000000000000000000000000000000000feff40000100000000000000000000000000",
701
- "P2SH,CHECKSEQUENCEVERIFY"
702
- ],
703
-
704
- [
705
- "By-time locks, with argument just beyond txin.nSequence (but within numerical boundries)"
706
- ],
707
- [
708
- [
709
- [
710
- "0000000000000000000000000000000000000000000000000000000000000100",
711
- 0,
712
- "4194305 NOP3 1"
713
- ]
714
- ],
715
- "020000000100010000000000000000000000000000000000000000000000000000000000000000000000000040000100000000000000000000000000",
716
- "P2SH,CHECKSEQUENCEVERIFY"
717
- ],
718
- [
719
- [
720
- [
721
- "0000000000000000000000000000000000000000000000000000000000000100",
722
- 0,
723
- "4259839 NOP3 1"
724
- ]
725
- ],
726
- "020000000100010000000000000000000000000000000000000000000000000000000000000000000000feff40000100000000000000000000000000",
727
- "P2SH,CHECKSEQUENCEVERIFY"
728
- ],
729
-
730
- ["Argument missing"],
731
- [
732
- [
733
- [
734
- "0000000000000000000000000000000000000000000000000000000000000100",
735
- 0,
736
- "NOP3 1"
737
- ]
738
- ],
739
- "020000000100010000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000",
740
- "P2SH,CHECKSEQUENCEVERIFY"
741
- ],
742
-
743
- ["Argument negative with by-blockheight txin.nSequence=0"],
744
- [
745
- [
746
- [
747
- "0000000000000000000000000000000000000000000000000000000000000100",
748
- 0,
749
- "-1 NOP3 1"
750
- ]
751
- ],
752
- "020000000100010000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000",
753
- "P2SH,CHECKSEQUENCEVERIFY"
754
- ],
755
-
756
- [
757
- "Argument negative with by-blocktime txin.nSequence=CTxIn::SEQUENCE_LOCKTIME_TYPE_FLAG"
758
- ],
759
- [
760
- [
761
- [
762
- "0000000000000000000000000000000000000000000000000000000000000100",
763
- 0,
764
- "-1 NOP3 1"
765
- ]
766
- ],
767
- "020000000100010000000000000000000000000000000000000000000000000000000000000000000000000040000100000000000000000000000000",
768
- "P2SH,CHECKSEQUENCEVERIFY"
769
- ],
770
-
771
- ["Argument/tx height/time mismatch, both versions"],
772
- [
773
- [
774
- [
775
- "0000000000000000000000000000000000000000000000000000000000000100",
776
- 0,
777
- "0 NOP3 1"
778
- ]
779
- ],
780
- "020000000100010000000000000000000000000000000000000000000000000000000000000000000000000040000100000000000000000000000000",
781
- "P2SH,CHECKSEQUENCEVERIFY"
782
- ],
783
- [
784
- [
785
- [
786
- "0000000000000000000000000000000000000000000000000000000000000100",
787
- 0,
788
- "65535 NOP3 1"
789
- ]
790
- ],
791
- "020000000100010000000000000000000000000000000000000000000000000000000000000000000000000040000100000000000000000000000000",
792
- "P2SH,CHECKSEQUENCEVERIFY"
793
- ],
794
- [
795
- [
796
- [
797
- "0000000000000000000000000000000000000000000000000000000000000100",
798
- 0,
799
- "4194304 NOP3 1"
800
- ]
801
- ],
802
- "020000000100010000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000",
803
- "P2SH,CHECKSEQUENCEVERIFY"
804
- ],
805
- [
806
- [
807
- [
808
- "0000000000000000000000000000000000000000000000000000000000000100",
809
- 0,
810
- "4259839 NOP3 1"
811
- ]
812
- ],
813
- "020000000100010000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000",
814
- "P2SH,CHECKSEQUENCEVERIFY"
815
- ],
816
-
817
- [
818
- "6 byte non-minimally-encoded arguments are invalid even if their contents are valid"
819
- ],
820
- [
821
- [
822
- [
823
- "0000000000000000000000000000000000000000000000000000000000000100",
824
- 0,
825
- "0x06 0x000000000000 NOP3 1"
826
- ]
827
- ],
828
- "020000000100010000000000000000000000000000000000000000000000000000000000000000000000ffff00000100000000000000000000000000",
829
- "P2SH,CHECKSEQUENCEVERIFY"
830
- ],
831
-
832
- ["Failure due to failing CHECKSEQUENCEVERIFY in scriptSig"],
833
- [
834
- [
835
- [
836
- "0000000000000000000000000000000000000000000000000000000000000100",
837
- 0,
838
- "1"
839
- ]
840
- ],
841
- "02000000010001000000000000000000000000000000000000000000000000000000000000000000000251b2000000000100000000000000000000000000",
842
- "P2SH,CHECKSEQUENCEVERIFY"
843
- ],
844
-
845
- ["Failure due to failing CHECKSEQUENCEVERIFY in redeemScript"],
846
- [
847
- [
848
- [
849
- "0000000000000000000000000000000000000000000000000000000000000100",
850
- 0,
851
- "HASH160 0x14 0x7c17aff532f22beb54069942f9bf567a66133eaf EQUAL"
852
- ]
853
- ],
854
- "0200000001000100000000000000000000000000000000000000000000000000000000000000000000030251b2000000000100000000000000000000000000",
855
- "P2SH,CHECKSEQUENCEVERIFY"
856
- ],
857
-
858
- ["Failure due to insufficient tx.nVersion (<2)"],
859
- [
860
- [
861
- [
862
- "0000000000000000000000000000000000000000000000000000000000000100",
863
- 0,
864
- "0 NOP3 1"
865
- ]
866
- ],
867
- "010000000100010000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000",
868
- "P2SH,CHECKSEQUENCEVERIFY"
869
- ],
870
- [
871
- [
872
- [
873
- "0000000000000000000000000000000000000000000000000000000000000100",
874
- 0,
875
- "4194304 NOP3 1"
876
- ]
877
- ],
878
- "010000000100010000000000000000000000000000000000000000000000000000000000000000000000000040000100000000000000000000000000",
879
- "P2SH,CHECKSEQUENCEVERIFY"
880
- ],
881
-
882
- ["Make diffs cleaner by leaving a comment here without comma at the end"]
883
- ]