Skip to content

Commit 6807d2f

Browse files
committed
Update headers and remove space after comma in descriptors
1 parent 9557c1e commit 6807d2f

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

bip-spdescriptor.mediawiki

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
Type: Informational
1010
Created: 2025-12-03
1111
License: BSD-2-Clause
12-
Requires: 352, 380
12+
Post-History: https://groups.google.com/g/bitcoindev/c/bP6ktUyCOJI
13+
Requires: 44, 341, 350, 352, 380
1314
</pre>
1415

1516
==Abstract==
@@ -56,7 +57,7 @@ Note: The serialization of <tt>ser<sub>256</sub>(p)</tt> and <tt>ser<sub>P</sub>
5657

5758
===<tt>sp()</tt>===
5859

59-
The <tt>sp(KEY)</tt> or <tt>sp(KEY, BIRTHDAY, LABEL, ...)</tt> expression can only be used as a top level descriptor.
60+
The <tt>sp(KEY)</tt> or <tt>sp(KEY,BIRTHDAY,LABEL,...)</tt> expression can only be used as a top level descriptor.
6061

6162
<tt>sp(KEY)</tt> takes a single key expression as an argument, which must be either an <tt>spscan</tt> or <tt>spspend</tt> encoded key, optionally with key origin information.
6263
If included, the key origin information should specify the derivation path to the account level as defined in BIP44.
@@ -66,7 +67,7 @@ When using the minimal form <tt>sp(KEY)</tt>:
6667
* The birthday defaults to block height 842579 (May 8, 2024, when BIP352 was merged)
6768
* Only the change label (<tt>m = 0</tt>) is assumed
6869
69-
<tt>sp(KEY, BIRTHDAY, LABEL, ...)</tt> takes:
70+
<tt>sp(KEY,BIRTHDAY,LABEL,...)</tt> takes:
7071
* A key expression (first argument)
7172
* A birthday as a positive integer representing a block height (second argument)
7273
* Zero or more label integers (remaining arguments), where each label is a positive integer
@@ -82,15 +83,15 @@ The output scripts produced are BIP341 taproot outputs as specified in BIP352.
8283
Valid descriptors:
8384

8485
* <tt>sp(spscan1q...)</tt> - Minimal form with default birthday and change label only
85-
* <tt>sp([deadbeef/352'/0'/0']spscan1q..., 900000)</tt> - With key origin and custom birthday
86-
* <tt>sp(spspend1q..., 842579, 1, 2, 3)</tt> - With birthday and labels 1, 2, 3
87-
* <tt>sp([deadbeef/352'/0'/0']spscan1q..., 900000, 1, 5, 10)</tt> - With key origin, birthday, and labels 1, 5, 10
86+
* <tt>sp([deadbeef/352'/0'/0']spscan1q...,900000)</tt> - With key origin and custom birthday
87+
* <tt>sp(spspend1q...,842579,1,2,3)</tt> - With birthday and labels 1, 2, 3
88+
* <tt>sp([deadbeef/352'/0'/0']spscan1q...,900000,1,5,10)</tt> - With key origin, birthday, and labels 1, 5, 10
8889
8990
Invalid descriptors:
9091

9192
* <tt>sp()</tt> requires a key expression
9293
* <tt>sp(xpub...)</tt> requires spscan or spspend encoded key
93-
* <tt>sp(spscan1q..., abc)</tt> birthday must be a positive integer
94+
* <tt>sp(spscan1q...,abc)</tt> birthday must be a positive integer
9495
* <tt>sh(sp(spscan1q...))</tt> sp() is top level only
9596
* <tt>wsh(sp(spscan1q...))</tt> sp() is top level only
9697

0 commit comments

Comments
 (0)