Skip to content

feat(wasm-utxo): add musig2 participants field for BIP322 p2trMusig2 signing#268

Merged
OttoAllmendinger merged 1 commit intomasterfrom
BTC-0.bip322-musig2-fixes
Apr 28, 2026
Merged

feat(wasm-utxo): add musig2 participants field for BIP322 p2trMusig2 signing#268
OttoAllmendinger merged 1 commit intomasterfrom
BTC-0.bip322-musig2-fixes

Conversation

@OttoAllmendinger
Copy link
Copy Markdown
Contributor

Write Musig2Participants proprietary field when creating BIP322
p2trMusig2 keypath inputs. This enables is_musig2_input() to return
true, triggering nonce generation and the musig2 protocol for signing.

Add comprehensive test coverage for p2trMusig2 BIP322 workflows:

  • Participants field is set correctly
  • Keypath signing and verification with musig2 protocol
  • Backup flows correctly use script path (no musig2)
  • Multiple input verification
  • Invalid message detection
  • Legacy p2tr signing compatibility

Co-authored-by: llm-git llm-git@ttll.de

Issue: BTC-0

…signing

Write Musig2Participants proprietary field when creating BIP322
p2trMusig2 keypath inputs. This enables is_musig2_input() to return
true, triggering nonce generation and the musig2 protocol for signing.

Add comprehensive test coverage for p2trMusig2 BIP322 workflows:
- Participants field is set correctly
- Keypath signing and verification with musig2 protocol
- Backup flows correctly use script path (no musig2)
- Multiple input verification
- Invalid message detection
- Legacy p2tr signing compatibility

Co-authored-by: llm-git <llm-git@ttll.de>

Issue: BTC-0
@OttoAllmendinger OttoAllmendinger force-pushed the BTC-0.bip322-musig2-fixes branch from 43e8df1 to 91da3cc Compare April 28, 2026 11:35
@OttoAllmendinger OttoAllmendinger marked this pull request as ready for review April 28, 2026 11:54
@OttoAllmendinger OttoAllmendinger requested a review from a team as a code owner April 28, 2026 11:54
@OttoAllmendinger OttoAllmendinger merged commit 6f49c95 into master Apr 28, 2026
16 checks passed
@OttoAllmendinger OttoAllmendinger deleted the BTC-0.bip322-musig2-fixes branch April 28, 2026 12:44
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.

2 participants