summaryrefslogtreecommitdiff
path: root/bip-0385.mediawiki
diff options
context:
space:
mode:
authorkallewoof <kalle.alm@gmail.com>2023-06-30 10:37:11 +0900
committerGitHub <noreply@github.com>2023-06-30 10:37:11 +0900
commitc95f655be6d998c5f5af668732e72bd4a6162c19 (patch)
tree1d0c45ef397358800767d94244259790ac98ccdc /bip-0385.mediawiki
parent0c9e826870495dc48cbb954c860330ae891c36de (diff)
parentbb562aa8e9c438e653668b08e5c16b7e71abc832 (diff)
Merge pull request #1468 from achow101/descriptor-tests
descriptors: add test vectors
Diffstat (limited to 'bip-0385.mediawiki')
-rw-r--r--bip-0385.mediawiki20
1 files changed, 19 insertions, 1 deletions
diff --git a/bip-0385.mediawiki b/bip-0385.mediawiki
index 5c46d75..f97a331 100644
--- a/bip-0385.mediawiki
+++ b/bip-0385.mediawiki
@@ -44,7 +44,25 @@ The output script produced by this descriptor is the output script produced by t
==Test Vectors==
-TBD
+Valid descriptors followed by the scripts they produce.
+
+* <tt>raw(deadbeef)</tt>
+** <tt>deadbeef</tt>
+* <tt>raw(512103a34b99f22c790c4e36b2b3c2c35a36db06226e41c692fc82b8b56ac1c540c5bd4104a34b99f22c790c4e36b2b3c2c35a36db06226e41c692fc82b8b56ac1c540c5bd5b8dec5235a0fa8722476c7709c02559e3aa73aa03918ba2d492eea75abea23552ae)</tt>
+** <tt>512103a34b99f22c790c4e36b2b3c2c35a36db06226e41c692fc82b8b56ac1c540c5bd4104a34b99f22c790c4e36b2b3c2c35a36db06226e41c692fc82b8b56ac1c540c5bd5b8dec5235a0fa8722476c7709c02559e3aa73aa03918ba2d492eea75abea23552ae</tt>
+* <tt>raw(a9149a4d9901d6af519b2a23d4a2f51650fcba87ce7b87)</tt>
+** <tt>a9149a4d9901d6af519b2a23d4a2f51650fcba87ce7b87</tt>
+* <tt>addr(3PUNyaW7M55oKWJ3kDukwk9bsKvryra15j)</tt>
+** <tt>a914eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee87</tt>
+
+Invalid descriptors
+
+* Non-hex script: <tt>raw(asdf)</tt>
+* Invalid address: <tt>addr(asdf)</tt>
+* <tt>raw</tt> nested in <tt>sh</tt>: <tt>sh(raw(deadbeef))</tt>
+* <tt>raw</tt> nested in <tt>wsh</tt>: <tt>wsh(raw(deadbeef))</tt>
+* <tt>addr</tt> nested in <tt>sh</tt>: <tt>sh(addr(3PUNyaW7M55oKWJ3kDukwk9bsKvryra15j))</tt>
+* <tt>addr</tt> nested in <tt>wsh</tt>: <tt>wsh(addr(3PUNyaW7M55oKWJ3kDukwk9bsKvryra15j))</tt>
==Backwards Compatibility==