Skip to content

NestedMuSig2: F2–F5 fixes preserving author's X-only binding - #1

Merged
patrickdugan merged 19 commits into
beulah-nested-musig2-xonly-20261015from
nested-musig2-xonly-conformance-20261022
Oct 22, 2026
Merged

patrickdugan merged 19 commits into
beulah-nested-musig2-xonly-20261015from
nested-musig2-xonly-conformance-20261022

Conversation

@patrickdugan

Copy link
Copy Markdown
Owner

Rebased conformance fixes for Beulah Evanjalin's NestedMuSig2 draft, starting from her commit 4523ee0 (October 15, 2026).

Respects the author's choice: the intermediate binding factor remains H(aggnonce || xbytes(Q)) with a 32-byte X-only aggregate point encoding. No multi-level test vectors change. The public NonceAggExt API accepts a 33-byte plain key, as the spec says, and converts it to the chosen X-only hash representation.

Changes:

  • F2: clarify MuSig2* proof-scope assumptions; the depth-of-nesting theorem question remains for the paper author.
  • F3: make BIP327 root-level interoperability and KeySort requirements explicit; remove duplicate, regenerated BIP327 vectors and read the canonical upstream vectors.
  • F4: consume secret nonce material before fallible signing operations; check secret-key size; add regression for failed signing and nonce reuse.
  • F5: return both the plain challenge and accumulated challenge from session values, validate signature lengths, derive effective R during BIP327-style root aggregation, distinguish intermediate signature scalar sum, and correct test-driver tweak timing.

Review status: structural source checks passed on the branch. Complete test scripts have not been run in this environment. Before ready:

cd bip-nested-musig2
sh tests.sh
python3 tests/multi-level-tests/nested_examples.py

Related: Upstream proposal, author's F1 clarification, original review, historical F1–F5 PR.

This local review PR is based directly on the author's selected X-only implementation. Cross-fork PR submission requires GitHub permission from the connected integration.

@patrickdugan
patrickdugan marked this pull request as ready for review October 22, 2026 09:02
@patrickdugan
patrickdugan merged commit bf526a8 into beulah-nested-musig2-xonly-20261015 Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant