From a4d9938ed23039538c9f94f5f9e4805e6b196d44 Mon Sep 17 00:00:00 2001
From: Salvatore Ingala <6681844+bigspider@users.noreply.github.com>
Date: Fri, 8 Nov 2024 12:46:16 +0000
Subject: [PATCH] Explicitly forbid repeated key indexes in musig()
---
bip-0388.mediawiki | 2 ++
1 file changed, 2 insertions(+)
diff --git a/bip-0388.mediawiki b/bip-0388.mediawiki
index 0ee4ac9a..19091cfb 100644
--- a/bip-0388.mediawiki
+++ b/bip-0388.mediawiki
@@ -198,6 +198,8 @@ The public keys obtained by deserializing elements of the key information vector
If two KEY are KP/
/* for the same key placeholder KP, then the sets {M, N} and {P, Q} must be disjoint. Two musig key placeholders are the same if they have exactly the same set of key indexes (regardless of the order). +Repeated KI expressions are not allowed inside a musig placeholder. + The key information vector should be ordered so that placeholder @i never appears for the first time before an occurrence of @j for some j < i; for example, the first placeholder is always @0, the next one is @1, etc. === Descriptor derivation ===