Skip to content

BIP-327: Fix reduction sketch for infinity in nonce aggregation - #2354

Draft
real-or-random wants to merge 1 commit into
bitcoin:masterfrom
real-or-random:202611-bip327-infinity-reduction
Draft

real-or-random wants to merge 1 commit into
bitcoin:masterfrom
real-or-random:202611-bip327-infinity-reduction

Conversation

@real-or-random

Copy link
Copy Markdown
Contributor

The section "Dealing with Infinity in Nonce Aggregation" sketches a reduction from the unforgeability of the modified scheme, which sets the final nonce R to G whenever it would be the point at infinity, to the unforgeability of the original MuSig2* scheme. The sketch let the reduction translate aggnonce' = bytes(33, 0) || bytes(33, 0) into aggnonce = cbytes_ext(G) || bytes(33, 0). But the nonce coefficient b is derived by hashing the aggregate nonce, so the adversary expects a b computed from aggnonce' while the original game computes b from aggnonce. The resulting partial signatures do not match, and the sketch does not work as a black-box reduction.

Replace the sketch with a reduction that programs the random oracles. For each pair of aggregate public key and message, it maps the three aggregate nonces whose final nonce is G or -G in the modified scheme, namely bytes(33, 0) || bytes(33, 0), cbytes(G) || bytes(33, 0), and cbytes(-G) || bytes(33, 0), to three aggregate nonces of its own choice whose final nonce in the original game is a random W or -W, and it swaps xbytes(G) with xbytes(W) in the inputs of the challenge hash. The three values that the partial signature depends on, i.e., the nonce coefficient, the challenge, and the parity of the final nonce, then agree between the adversary's view and the original game. Since the reduction knows the discrete logarithms of all group elements it introduces, the argument also applies in the algebraic group model, in which the security proof of MuSig2* is given. The full argument is in a footnote. Bump the version to 1.0.5.

The problem with the previous sketch was found by mllwchrry while reviewing the corresponding section of the FROST signing BIP draft, see siv2r/bip-frost-signing#73.

The reduction has been found and written down with the help of Claude Fable 5.1.

@real-or-random

Copy link
Copy Markdown
Contributor Author

cc @mllwchrry , want to review this? :)

(The version bump conflicts with #2351 at the moment.)

@jonatack jonatack added the BIP Update by Owner PR by Author or Deputy to modify their own BIP label Nov 13, 2026
@mllwchrry

Copy link
Copy Markdown

The argument looks good to me! Just wondering: since the swapped hash inputs only contain ''xbytes(Q)'', wouldn't it be more precise to choose ''Y'' and ''W'' per ''xbytes(Q)'' rather than per ''Q''? For hash queries, the reduction doesn't see ''Q'' itself.

@real-or-random

Copy link
Copy Markdown
Contributor Author

cc @jonasnick

The section "Dealing with Infinity in Nonce Aggregation" sketches a
reduction from the unforgeability of the modified scheme, which sets the
final nonce R to G whenever it would be the point at infinity, to the
unforgeability of the original MuSig2* scheme. The sketch let the
reduction translate aggnonce' = bytes(33, 0) || bytes(33, 0) into
aggnonce = cbytes_ext(G) || bytes(33, 0). But the nonce coefficient b is
derived by hashing the aggregate nonce, so the adversary expects a b
computed from aggnonce' while the original game computes b from
aggnonce. The resulting partial signatures do not match, and the sketch
does not work as a black-box reduction.

Replace the sketch with a reduction that programs the random oracles.
For each pair of aggregate public key and message, it maps the three
aggregate nonces whose final nonce is G or -G in the modified scheme,
namely bytes(33, 0) || bytes(33, 0), cbytes(G) || bytes(33, 0), and
cbytes(-G) || bytes(33, 0), to three aggregate nonces of its own choice
whose final nonce in the original game is a random W or -W, and it swaps
xbytes(G) with xbytes(W) in the inputs of the challenge hash. The three
values that the partial signature depends on, i.e., the nonce
coefficient, the challenge, and the parity of the final nonce, then
agree between the adversary's view and the original game. Since the
reduction knows the discrete logarithms of all group elements it
introduces, the argument also applies in the algebraic group model, in
which the security proof of MuSig2* is given. The full argument is in a
footnote. Bump the version to 1.0.6.

The problem with the previous sketch was found by mllwchrry while
reviewing the corresponding section of the FROST signing BIP draft, see
siv2r/bip-frost-signing#73.

The reduction has been found and written down with the help of Claude
Fable 5.1.
@real-or-random
real-or-random force-pushed the 202611-bip327-infinity-reduction branch from c51847a to 9854530 Compare November 17, 2026 16:41
@real-or-random

Copy link
Copy Markdown
Contributor Author

The argument looks good to me! Just wondering: since the swapped hash inputs only contain ''xbytes(Q)'', wouldn't it be more precise to choose ''Y'' and ''W'' per ''xbytes(Q)'' rather than per ''Q''? For hash queries, the reduction doesn't see ''Q'' itself.

Indeed. Force-pushed to address this.

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

Labels

BIP Update by Owner PR by Author or Deputy to modify their own BIP

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants