Skip to content

Conversation

@OttoAllmendinger
Copy link
Contributor

Add Python test script that validates the TypeScript MuSig2 implementation
against the BIP-327 reference implementation. The tests use JSON fixtures
generated from the TypeScript test suite to ensure both implementations
produce identical results at every step of the MuSig2 protocol.

Validation includes key aggregation, taproot tweaking, deterministic nonce
generation, partial signing, signature verification, and aggregation. Tests
use fixed session IDs to ensure bit-for-bit identical outputs between both
implementations.

BTC-2652

Add Python test script that validates the TypeScript MuSig2 implementation
against the BIP-327 reference implementation. The tests use JSON fixtures
generated from the TypeScript test suite to ensure both implementations
produce identical results at every step of the MuSig2 protocol.

Validation includes key aggregation, taproot tweaking, deterministic nonce
generation, partial signing, signature verification, and aggregation. Tests
use fixed session IDs to ensure bit-for-bit identical outputs between both
implementations.

Issue: BTC-2652

Co-authored-by: llm-git <[email protected]>
@OttoAllmendinger OttoAllmendinger marked this pull request as ready for review November 3, 2025 13:53
@OttoAllmendinger OttoAllmendinger requested a review from a team as a code owner November 3, 2025 13:53
@OttoAllmendinger OttoAllmendinger merged commit 043e340 into master Nov 4, 2025
13 checks passed
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.

3 participants