BIP 327, MuSig2 for BIP340-compatible Multi-Signatures, standardizes a cooperative signing scheme in which several private-key holders create one aggregate public key and one Schnorr signature. The specification is by Jonas Nick, Tim Ruffing and Elliott Jin. Its maintained version is 1.0.4 (19 August 2026), and its current BIP status is Deployed. That status labels the specification; it does not mean all Bitcoin wallets can participate in MuSig2. Maintained BIP — direct specification · Version 1.0.4 source change
The central security episode in its history occurred before the BIP entered the canonical repository. In October 2022, its authors disclosed an attack on a draft extension supporting tweaked individual keys under specific concurrent-signing conditions. The draft was revised in November; the stable specification merged in March 2023. The discovery is not evidence that Taproot itself was vulnerable, or that deployed wallets were exploited. Contemporary first-party disclosure · Original BIP PR
What MuSig2 signs
Basic MuSig2 is an n-of-n construction: every member of the designated signing group must cooperate to produce a signature. It does not independently offer an arbitrary two-of-three threshold. A Taproot script-path alternative can implement other spending conditions, but that is a separate Bitcoin spending policy. Motivation · BIP 341
Its process has three distinguishable stages:
- Key aggregation. Participants combine their public keys into an aggregate public key. The input key order affects the result unless an application first sorts the keys. BIP 327 specifies a sorting algorithm without requiring every application to use it.
- First communication round. Every participant creates a secret nonce and a corresponding public nonce and exchanges the public value. A session-specific secret nonce must be consumed once, not stored for casual reuse.
- Second communication round. With the aggregate nonce, session message, keys and tweaks known, each signer produces a partial signature. The partial contributions are combined into one ordinary BIP 340 signature. Invalid contributions can be checked to identify a disrupting signer.
A coordinating party can relay and aggregate contributions without learning the signers' private keys, although it can disrupt availability. The basic on-chain signature does not attest to who took part or how consent was obtained. Compared with a tapscript construction that reveals multiple keys and signature checks, a successful MuSig2 key-path spend can be smaller and reveal less about the signing arrangement. Protocol overview, design and security · Tapscript signature opcodes
Keys, tweaks and descriptors
BIP 327 accepts 33-byte compressed individual public keys for key aggregation but produces an X-only aggregate key and BIP 340-compatible signature. Compressed public keys preserve parity information needed by some derivation and fingerprint operations. Confusing these forms can make separately implemented wallets derive different commitments. BIP 327 key-aggregation specification
There are two distinct kinds of tweaking. A plain tweak can support unhardened child public-key derivation, while an X-only tweak supports Taproot output commitments with script paths. MuSig2 incorporates these tweaks into its signing session; an aggregate public key alone does not contain the private signing authority to produce ordinary hardened descendants. BIP 328 specifies a synthetic xpub derived from the plain aggregate key and a fixed chain code. It permits unhardened BIP 32 public derivation, but no aggregate xprv exists: the component signers must reproduce each child's plain tweaks when cooperatively signing. BIP 390 defines the musig() descriptor expression, distinguishing deriving participant keys before aggregation from deriving children after aggregation and prescribing sorting before KeyAgg. These are wallet-application standards, not extra Bitcoin consensus rules. BIP 328 specification · BIP 390 grammar Tweaking specification · BIP 328 · BIP 390
BIP 373 later added PSBT fields for the ordered participant keys, public nonces and partial signatures. This means that describing the expected output, coordinating the signing exchange and ultimately validating the on-chain signature remain separate operations. A PSBT is a transport for signing information, not itself a security guarantee that a proposed transaction pays the intended party or transfers the intended inscription. PSBT fields and roles
The October 2022 draft vulnerability
5 April 2022. Nick published an early BIP draft to bitcoin-dev, after related MuSig2 research. The maintained header carries the date 22 March 2022, but the original source imported in 2023 used that as Created, and PR #1372 still discussed the missing BIP number in October 2022. The assignment/header date must not be mistaken for a March 2022 canonical merge. Contemporary PR and review · First canonical source commit
11 October 2022. Nick, Ruffing, Jin and Yannick Seurin identified an attack against the then-current draft when an individual public key had been tweaked before aggregation. The authors identified four simultaneous preconditions: a signer supports attacker-known individual-key tweaks; related tweaked copies of a key occur in the aggregate key list; the signer keeps concurrent sessions; and the exact signing key can still be influenced after its public nonce is released. Under these conditions the authors warned of signature forgery, including for the underlying key. This was a contemporary first-party security disclosure concerning a draft's supported usage, not a chain incident report. Original disclosure and conditions
The authors explicitly distinguished the vulnerable tweaked-key application from the original MuSig2 research security model, which did not allow that form of individual-key tweaking. They also contacted implementers and asked them to examine exposure. An acknowledgement that draft implementations existed does not demonstrate that any production system met all four attack conditions. First-party qualifications · Draft implementation inventory
3 November 2022. Nick reported a revised specification and experimental attack work. The correction required a signer's final public key to be supplied to NonceGen, stored alongside its secret nonce and checked against the actual secret key in Sign. The critical ordering is that the key must be determined before revealing the public nonce. The authors also retroactively renamed an earlier draft version to 1.0.0-rc.1 to preserve a coherent prerelease changelog. The PR returned from draft to review after the fix. First-party explanation and review · Development-source fix
Nonce lifecycle and signing safety
BIP 327 secret nonces are security-sensitive session state. The specification warns that using the same secret nonce in more than one call to Sign can undermine security, and recommends preventing reuse, for example by destroying or invalidating consumed state. Keeping a public nonce for communication is not equivalent to preserving the corresponding secret nonce as a safe reusable credential. Nonce-generation and signing requirements
The distinction reaches actual wallet software. Bitcoin Core's MuSig2 wallet implementation explicitly makes secret nonces nonserializable and holds them in memory: restarting requires a fresh signing session. That is first-party evidence about the Core implementation, not a claim about every independent device or library. The Python reference implementation supplied with BIP 327 warns that it is for demonstration and is not production-safe, including because of timing-attack exposure. Bitcoin Core implementation description · Python reference warning
A November 2023 developer discussion also challenged the common shorthand that reusing one MuSig2 nonce pair in exactly two individual sessions inevitably exposes a private key. Subsequent replies distinguished straightforward key extraction from more sophisticated forgery attacks involving many concurrent sessions. The safe implementation rule remains never reuse secret nonce state; the archive should not replace the protocol's security warning with an oversimplified equation. This discussion is contemporary technical analysis, not a report of a production compromise. Public protocol discussion, November 2023–March 2024
Standardisation, implementation and corrections
musig module merged into **libsecp256k1** on **7 October** via PR #1479. Release **v0.6.0**, published **4 November**, explicitly included it. This establishes a distributed cryptographic library implementation, not full Bitcoin Core wallet support. Merge · Release recordDeterministicSign's public-nonce expression and key length. Version **1.0.4** corrected a six-versus-seven-value pseudocode unpack in PartialSigAgg and a typo. The source diff does not establish that a released implementation failed in either case. 1.0.3 diff · 1.0.4 diffOrdinals and Bitmap interpretation
For Ordinals and Bitmap, key aggregation may change who must cooperate to sign a Bitcoin spend, but it does not alter sat assignment, an inscription envelope, Inscription provenance or the eligibility/order rules of the Bitmap Standard. A wallet displaying a single-key Taproot output cannot infer that there was only one participant. Likewise an unsigned transaction or PSBT describing the correct aggregate key cannot prove that the intended inscription will be transferred to a particular output. These are separate verification layers. Scheme scope · PSBT scope · Ordinal theory
Evidence limits and open work
The 2022 mailing-list message and PR comments are contemporary first-party accounts; code diffs, PR merges and release tags are direct records of specification or software history. The 2023 discussion of nonce equations is subsequent technical interpretation. None of those alone identifies a victim wallet or proves widespread user adoption.
Identify any independently documented production use of the pre-November-2022 tweaked-key draft that met the full attack preconditions; do not infer exploitation from the disclosure.
Reproduce the pre-fix BIP draft with the authors' published demonstration and compare it with the fixed specification without using unsafe demonstration code for real funds.
Check hardware-wallet and cross-vendor signing implementations by dated release against BIP 327 version changes, PSBT BIP 373 parsing and non-reuse of secret nonce state.
Follow BIPs PR #2329 to a final outcome and examine whether its unrepresented cases expose implementation disagreements or only gaps in the test inventory.
From the archivist's desk
The signature on-chain looks ordinary; the difficult history is almost entirely off-chain. I followed the missing BIP 327 link from BIP 373 and found a security correction made while the standard was still being negotiated. The authors published the conditions and changed the protocol before its canonical merge. Keeping that sequence intact matters more than attaching the word “vulnerability” to an undated headline.