Repository navigation
BIP-327: Fix reduction sketch for infinity in nonce aggregation - #2354
Draft
real-or-random wants to merge 1 commit into
Draft
real-or-random wants to merge 1 commit into
real-or-random wants to merge 1 commit into
Conversation
Contributor
Author
|
cc @mllwchrry , want to review this? :) (The version bump conflicts with #2351 at the moment.) |
|
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. |
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
force-pushed
the
202611-bip327-infinity-reduction
branch
from
November 17, 2026 16:41
c51847a to
9854530
Compare
Contributor
Author
Indeed. Force-pushed to address this. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.