Skip to content

Instantly share code, notes, and snippets.

@pinheadmz
Created September 23, 2022 17:21
Show Gist options
  • Save pinheadmz/a3fccd1e327577780ed0f5599d9fecb0 to your computer and use it in GitHub Desktop.
Save pinheadmz/a3fccd1e327577780ed0f5599d9fecb0 to your computer and use it in GitHub Desktop.
diff --git a/src/test/data/script_tests.json b/src/test/data/script_tests.json
index ad05240369..e929dc3bff 100644
--- a/src/test/data/script_tests.json
+++ b/src/test/data/script_tests.json
@@ -2620,5 +2620,17 @@
["0 0x09 0x300602010102010101 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0", "0x01 0x14 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0x01 0x14 CHECKMULTISIG NOT", "DERSIG", "OK", "BIP66-compliant but not NULLFAIL-compliant"],
["0 0x09 0x300602010102010101 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0", "0x01 0x14 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0x01 0x14 CHECKMULTISIG NOT", "DERSIG,NULLFAIL", "NULLFAIL", "BIP66-compliant but not NULLFAIL-compliant"],
+[
+ [
+ "51",
+ 0.00000001
+ ],
+ "",
+ "0 0x20 0x4ae81572f06e1b88fd5ced7a1a000945432e83e1551e6f721ee9c00b8cc33260",
+ "P2SH,WITNESS",
+ "OK",
+ "OP_VERIFY / OP_TRUE"
+],
+
["The End"]
]
@pinheadmz
Copy link
Author

script hash generated by bcoin:

> Script.fromString('OP_1').sha256().toString('hex')
'4ae81572f06e1b88fd5ced7a1a000945432e83e1551e6f721ee9c00b8cc33260'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment