Skip to content

Commit 299a412

Browse files
committed
Fixed nit from PR review; explicitly forbid repeated key indexes in musig()
1 parent be5029f commit 299a412

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bip-0388.mediawiki

+3-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ See [[bip-0379.md|BIP-379]] for a precise specification of all the valid miniscr
151151
152152

153153
<tt>KEY</tt> expressions consist of
154-
* a <tt>KP</tt> expressions
154+
* a <tt>KP</tt> expression
155155
* ''always'' followed by either:
156156
** the string <tt>/**</tt>, or
157157
** a string of the form <tt>/<NUM;NUM>/*</tt>, for two distinct decimal numbers <tt>NUM</tt> representing unhardened derivations, or
@@ -198,6 +198,8 @@ The public keys obtained by deserializing elements of the key information vector
198198

199199
If two <tt>KEY</tt> are <tt>KP/<M;N>/*</tt> and <tt>KP/<P;Q>/*</tt> for the same key placeholder <tt>KP</tt>, then the sets <tt>{M, N}</tt> and <tt>{P, Q}</tt> must be disjoint. Two <tt>musig</tt> key placeholders are the same if they have exactly the same set of key indexes (regardless of the order).
200200

201+
Repeated <tt>KI</tt> expressions are not allowed inside a <tt>musig</tt> placeholder.
202+
201203
The key information vector should be ordered so that placeholder <tt>@i</tt> never appears for the first time before an occurrence of <tt>@j</tt> for some <tt>j < i</tt>; for example, the first placeholder is always <tt>@0</tt>, the next one is <tt>@1</tt>, etc.
202204

203205
=== Descriptor derivation ===

0 commit comments

Comments
 (0)