BIP 328, Derivation Scheme for MuSig2 Aggregate Keys, is Ava Chow's method for creating a BIP 32-compatible extended public key from a MuSig2 aggregate public key. The resulting synthetic xpub can generate a sequence of receiving keys without recomputing the aggregate of every participant's public key at every address index. It does not create an aggregate private key, turn n-of-n MuSig2 into a threshold scheme, or add a Bitcoin consensus rule. Maintained specification — primary source · Original combined proposal
The document is marked Complete in the canonical BIPs repository, with an assigned date of 4 June 2024. That header date is not its publication date. An early source was submitted in January 2024, the BIP entered the canonical repository on 25 June 2024, test vectors and a reference implementation merged in February 2025, and its current status arose from a BIP-process migration in January 2026. Bitcoin Core's later descriptor parsing and wallet signing arrived in different releases. Original PR and merge · Test-vector/reference-implementation merge · Status migration · Bitcoin Core's release-tagged BIP support list
The problem: a new aggregate key for every payment
A basic MuSig2 group consists of signers who collectively produce a single Schnorr signature under a combined public key. The group can use a distinct output key for each payment, but it needs a reproducible method for producing those keys and for allowing each signer to authorize spends later. Ordinary hierarchical deterministic wallets solve address generation for individual keys with extended keys and child derivation; applying the same idea to a signing group is less obvious because no one holds the aggregate private key. MuSig2 signing · BIP 328 motivation
One approach is to derive a child public key separately from each participant's extended public key, then aggregate those child keys afresh for every index. BIP 328 describes a different construction: aggregate the group's keys first, wrap the result in a synthetic xpub, and derive unhardened public descendants from that one xpub. Those two procedures should not be presumed to produce identical outputs; a wallet must know which method and derivation path its group used. BIP 390 distinguishes these possibilities in its musig() descriptor grammar. Motivation and specification · MuSig descriptor grammar
Constructing the synthetic xpub
BIP 328 starts with a plain 33-byte compressed aggregate public key from the BIP 327 KeyAgg algorithm, including its parity byte. It assigns depth 0 and child number 0, then uses the same fixed 32-byte chain code for every such synthetic root. The accompanying reference implementation sets the root's parent fingerprint to four zero bytes. These fields make the result serializable in familiar BIP 32 extended-public-key form without implying that a conventional BIP 32 master private key exists. Normative construction · Reference construction · Extended-key serialization
MuSig2 participants' public keys
|
BIP 327 KeyAgg
|
33-byte plain aggregate public key
+ fixed chain code
+ depth 0 / child number 0
|
synthetic xpub
|
BIP 32 CKDpub (unhardened)
|
derived aggregate public keys
The fixed chain code is:
868087ca02a6f974c4598924c36b57762d32cb45717167e300622c7167e38965
It is SHA256("MuSig2MuSig2MuSig2"), as the specification explains. It is not random per-wallet entropy, a secret, or a substitute for the original participants' keys. I independently recalculated that SHA-256 value while checking the record. BIP 328 requires the same bytes to ensure that independent implementations obtain the same descendants from the same plain aggregate key and path. Chain-code definition and rationale
With a fixed chain code, the aggregate public key completely determines its synthetic xpub. Consequently, disclosing it exposes the same kind of public derivation and address-correlation information that sharing a normal xpub can expose. This is a privacy and linkability consideration, not a claim that a synthetic xpub discloses the component private keys or names the group's participants. Privacy warning · Ordinary xpub properties
Derivation and signing are different operations
A watch-only application can perform normal unhardened BIP 32 CKDpub from the synthetic xpub. It cannot derive hardened children: there is no aggregate private key with which to perform CKDpriv. This is more than a software restriction. It is a consequence of how the group signing authority is distributed. Specification and backwards compatibility
To sign for a derived child, every participating signer must reproduce the path's BIP 32 public derivation tweaks. For each step, BIP 328 identifies the I_L component of CKDpub as the tweak and requires it to enter the MuSig2 signing session as a plain tweak (is_xonly_t = false). The combined partial signatures then authorize the intended derived key. A signer who has only the final derived public key, without the expected group and derivation context, cannot safely infer what it should sign. Signing requirements · Plain tweaks and Sign algorithm
This also explains why the 33-byte compressed aggregate key matters. BIP 32 public derivation and fingerprint calculation require the full compressed key; a 32-byte X-only Taproot output key does not preserve all that origin information. BIP 373 uses the plain aggregate key in PSBT participant-key fields, and its original review explicitly discussed the rationale for not using X-only aggregate identifiers. PSBT fields and rationale · Contemporary review of key representation
Two derivation orders, one descriptor language
BIP 390 specifies the musig() key expression. Its two patterns help expose a subtle but important choice. They are schematic descriptions, not examples sufficient to reconstruct a particular wallet without its keys.
tr(musig(xpub_A/*, xpub_B/*))
derive each participant's key first,
then aggregate for that child index
tr(musig(xpub_A, xpub_B)/0/*)
aggregate the participant keys first,
then derive unhardened children of
the synthetic aggregate xpub (BIP 328)
In the latter form, the aggregate is computed first and then BIP 328's public derivation applies. BIP 390 prohibits combining ranged participant keys with an additional ranged path on the aggregate and prohibits hardened steps after aggregation. Its descriptor rules also prescribe key sorting before aggregation, even though basic BIP 327 aggregation depends on the given key order. The sort rule helps a descriptor recover the same key even when participants are written in a different order; it does not mean that arbitrary MuSig2 participant ordering is irrelevant to every other representation. Descriptor grammar, sorting rationale and invalid cases · Chow's contemporary sorting explanation
The distinction also matters when a signer receives a PSBT. BIP 373 says that an updater can include the aggregate key, component keys and derivation information so the signer can connect a transaction's output key to its own participation. When a PSBT lacks an explicit global xpub defining the synthetic aggregate, the BIP permits updaters to assume the BIP 328 derivation convention. That is an interoperability rule, not proof that supplied metadata is trustworthy. Signers still have to reconstruct the relevant keys, paths and Taproot commitments. Updater and signer rules · Taproot PSBT fields
What later BIP 390 revisions changed
The musig() descriptor referred to above is not frozen at its June 2024 wording. A June 2025 revision changed a prohibition on repeated participant public keys into explicit permission for them, while other edits clarified the restrictions on combining participant ranges and aggregate-level derivation. The duplicate-key example should not be interpreted as evidence of independent human signers. A December 2025 revision added rawtr() to the permitted contexts, and a March 2026 extension introduced sp() via silent-payment descriptors. The maintained BIP 390 remains Draft as of 2 November 2026 despite Bitcoin Core's earlier descriptor-parsing and later signing support. Repeated-key change · rawtr() extension · sp() extension · Implementation and release distinction
The documentary chronology
Created: 2024-01-15 field while its number had not yet been formally assigned. Original PR and author rationale · Imported early textmusig() naming and sorting. In April Chow said the descriptor should sort keys before aggregation, while PSBTs must communicate the actual aggregation order. These discussion comments are **contemporary first-party design evidence**, not independent proof of deployed interoperability. Sorting change · Author's rationaleCreated: 2024-01-15 header to **4 June 2024**, explicitly identifying the date the number was assigned. This correction should not retroactively erase the January submission. Date correction · Test vectors and implementation · Mergemusig() descriptors with v30.0. Parsing and deriving public outputs do **not** establish that Core 30 could complete MuSig2 wallet signing. Merged parsing PR · Core support list · Core release announcementTest vectors, implementation and recovery
The canonical BIP supplies three aggregate-public-key/synthetic-xpub pairs with the corresponding participating keys. Its auxiliary vectors.json and Python reference code provide reproducible examples. The first pair begins with aggregate key 0354240c76b8f2999143301a99c7f721ee57eee0bce401df3afeaa9ae218c70f23 and synthetic xpub xpub661MyMwAqRbcFt6tk3uaczE1y6EvM1TqXvawXcYmFEWijEM4PDBnuCXwwXEKGEouzXE6QLLRxjatMcLLzJ5LV5Nib1BN7vJg6yp45yHHRbm. These are test fixtures, not live funds or evidence of a production wallet. Specification vectors · Machine-readable vectors · Python reference
Recovery has at least three requirements beyond preserving a synthetic xpub: the participant signing secrets, the complete policy or descriptor identifying the group and derivation method, and the relevant derivation paths and output scripts. The xpub can help a watch-only wallet rediscover public descendants, but it cannot authorize spending by itself. A chain observer likewise cannot infer the underlying group from an ordinary successful Taproot key-path signature. These implications follow from the cited specifications; they are not a claim about a particular user's recovery incident. Derivation limitations · Descriptors · Aggregate signing
Relevance to Ordinals and Bitmap
An inscription or Bitmap controlled by an output may ultimately be held in a wallet whose signing authority is distributed across MuSig2 participants. The Bitcoin blockchain proves the relevant UTXO spending rules were satisfied; it does not reveal those participants, their off-chain agreement, or the derivation method that produced an aggregate output key. BIP 328 concerns key management, not sat tracking, inscription transfer, Bitmap claim ordering, or any separate cultural entitlement. It cannot substitute for independent validation of the intended output in a PSBT. Application scope · PSBT signer requirements · Taproot consensus
Open investigations
- Which third-party wallets or hardware signers actually shipped BIP 328 synthetic-xpub derivation before and after Core 30.0? The specification's Complete label does not answer this.
- Have independent implementations cross-checked the three public test vectors and the two BIP 390 derivation orders? The presence of reference code establishes a reproducible target, not a survey of compatible deployments.
- How do production wallets preserve group membership, sorting convention, descriptor, derivation paths and nonce-safe signing state across recovery? A synthetic xpub does not preserve those facts on its own.
- Did any historical wallet use nonstandard chain codes or derive-before-aggregate conventions that could complicate migration? Such deployments remain unverified; the archive should look for source and release evidence rather than infer them from the proposal.
Related pages
BIP 32 · BIP 327 · BIP 373 · BIP 390 · BIP 380 · BIP 389 · BIP 174 · Taproot · Deterministic wallets · Bitcoin multisignature