BOMBARCHIVE
Explore

A living reference collection. Written in the wiki, preserved in Git.

The archiveBitcoin

BIP 390

BIP 390 (musig() Descriptor Key Expression) defines a musig() key expression for Bitcoin output script descriptors. It lets a wallet describe a public key shared by a group using MuSig2, including a way to reproduce fresh receiving keys through aggregate-key derivation. It is a wallet and application interoperability specification, not a Bitcoin consensus change, an on-chain register of signers, or a general threshold-signature scheme. Maintained BIP 390 — primary specification · MuSig2 signing

As of 2 November 2026, BIP 390 remains Draft, version 0.2.0, with type Specification. Its assigned date is 4 June 2024, but an initial combined submission was opened in January 2024, the documents were merged in June 2024, and Bitcoin Core's descriptor parser first shipped in 30.0 in October 2025. Wallet signing followed in 31.0 in April 2026. Those milestones must not be collapsed into one date or one capability. Current BIP header · Initial three-BIP submission · Version-pinned implementation inventory

Why describing a signing group matters

A simple BIP 32 xpub can describe a sequence of public child keys without exposing the private key. MuSig2 changes the custody arrangement: several signers coordinate to produce one aggregate public key and, when they agree, one BIP 340-compatible signature. A watching wallet can recognize the output, but the people holding the individual secrets still need to know which group and derivation convention they agreed to use. BIP 327 construction · BIP 328 motivation

musig() records participant key expressions inside a descriptor. Under BIP 390, participant keys are derived as specified, then sorted with BIP 327 KeySort before aggregation. This makes a descriptor independent of the order in which participants happen to be written. It is a recovery convention, not a claim that bare MuSig2 key aggregation is order-independent: a MuSig2 PSBT must carry participant keys in their actual aggregation order. Sorting rule and rationale · Chow's April 2024 explanation

Two derivation orders that cannot be casually exchanged

BIP 390 recognizes two kinds of musig() expression. The following examples are schematic and contain placeholder xpubs; they are not importable descriptors or real wallet backups.

tr(musig(XPUB_A/0/*,XPUB_B/0/*))
  derive each participant's child key,
  sort the resulting keys, then aggregate

tr(musig(XPUB_A,XPUB_B)/0/*)
  sort and aggregate the base participant keys,
  construct BIP 328's synthetic aggregate xpub,
  then derive children of that public xpub

The first construction derives each participant's child before key aggregation. The second derives an aggregate first and then applies unhardened BIP 32 public derivation to the synthetic xpub specified by BIP 328. These are not generally equivalent, even with the same participants and apparent child index. A backup that remembers only the participating xpubs but not the derivation order can discover different outputs from the wallet it is meant to recover. Two forms of the key expression · Synthetic xpub construction

BIP 390 therefore forbids mixing ranged participant keys with additional ranged derivation after musig(). For aggregate-level derivation, participants must be xpubs or derived from xpubs; post-aggregation hardened derivation is invalid because there is no aggregate private key. The same restrictions cover combinations with multipath participant expressions. A watch-only descriptor can compute public output keys, but it cannot transform them into an aggregate xprv. Normative restrictions and invalid vectors · Unhardened-only derivation

Sorting, repeated keys and custody semantics

BIP 327's KeyAgg accepts an ordered list. BIP 390's KeySort step makes descriptors easier to reconstruct when the original textual ordering is lost. Chow's April 2024 explanation explicitly separated descriptor ordering from PSBT ordering, which the participating signers must still communicate correctly. First-party sorting explanation

There is a less obvious revision. The early BIP 390 prohibited repeated participant public keys. On 18 June 2025, the canonical text was changed to permit repetitions, with an example involving the same xpub in two participant positions. The original prohibition remains visible in earlier versions of the document. This was an express specification change, not evidence that two separate people must exist for every position or that an exploited wallet was discovered. Duplicate keys should not be casually interpreted as independent human approval. First-party revision proposal and merge · Exact changed wording and test vector

The descriptor specifies the public-key construction. It does not itself perform MuSig2's signing rounds, manage secret nonces, or carry the public nonces and partial signatures exchanged during a transaction. Those are the territory of BIP 327 and BIP 373. Nor is basic MuSig2 an arbitrary 2-of-3 threshold: basic aggregation requires cooperation from every designated signer. Signing and nonce rules · PSBT field roles

Where the expression is allowed

The maintained BIP permits musig() only as a key expression within tr(), rawtr(), or sp(). It cannot be nested inside another musig() or placed in arbitrary top-level pk(), pkh(), wpkh(), or wsh() descriptors. This is an application grammar restriction, not a statement about what every conceivable Bitcoin script could verify. Allowed contexts and negative test cases

Those permitted contexts have their own chronology. tr() was in the original proposal. rawtr() became expressly permitted in the 8 December 2025 revision. sp() was added with silent-payment descriptors in a revision merged 5 March 2026 (the BIP 390 changelog labels the version 0.2.0 change 4 March). The sp() form is intended for the spend-key expression of the two-argument silent-payment descriptor, alongside private scanning-key material. Silent-payment discovery is not provided by simply possessing a MuSig2 public key. rawtr extension · BIP 392 and sp() merge · BIP 392's two-argument semantics

An archival wrinkle: the original BIP 390 test vectors already included rawtr(musig(...)) examples even while the normative prose said the expression was permitted only in tr(). The later rawtr() revision resolved that apparent text/example mismatch. It should not be read backwards as proof that every 2024 parser supported the later grammar. Earliest canonical text and examples · Later grammar expansion

The sp() addition followed a contested design review in December 2025–March 2026. The first BIP 392 draft included wallet birthday and label arguments, later removed on 10 February 2026 while a composable sp(SCAN,SPEND) form was added. On 4 March, a reviewer requested explicit musig() permission and an example; the accepted revision updated both BIPs. That makes the syntax legitimate under the specifications, but does not itself demonstrate full wallet interoperability or supply a formal security proof for every joint-signing arrangement. See BIP 392 for the contemporaneous arguments and the still-unsettled recovery details. Design review · February change · March change

Documentary chronology

October 2023
Chow circulated related MuSig2 descriptor and PSBT ideas on bitcoin-dev. The later January submission describes this earlier circulation. This is **contemporary author testimony** about the draft's origin, not a claim that BIP number 390 already existed. Original PR description
15 January–25 June 2024
The three-document submission opened **15 January**: synthetic aggregate-key derivation (BIP 328), the musig() descriptor (BIP 390) and PSBT coordination (BIP 373). The original source was authored **15 January**, entered the canonical source history under a **19 June** commit timestamp, and PR #1540 merged **25 June**. The maintained header's **4 June** date records assignment, not the January draft or June merge. Submission and merge · Earliest source commit
April–November 2024
Chow explained descriptor sorting in April. In November the specification explicitly excluded musig() from top-level pk() and pkh(), tightening language that otherwise invited ambiguous interpretations. Bitcoin Core PR #31244 opened **7 November 2024** to implement descriptor parsing. Sorting rationale · Grammar clarification · Implementation PR
February–June 2025
A reference implementation link was added in February, with the BIP's Created header corrected to the assigned date. June clarifications allowed repeated participant keys, made the constraints on aggregate-level derivation more explicit, and addressed multipath combinations. The June edits are direct specification revisions, not evidence of new Bitcoin consensus rules. Reference implementation update · Header correction · Repeated-key revision · Additional key restrictions
31 July–October 2025
Core merged descriptor parsing PR #31244 on **31 July**; version **30.0** shipped parsing and key aggregation. This did **not** yet mean Core's wallet could complete a MuSig2 signing round. Merge record · Version-pinned BIP support inventory
December 2025–April 2026
rawtr() support entered the BIP text in December. Bitcoin Core **31.0** shipped MuSig2 wallet signing in **April 2026**, following the separate implementation PR #29675. The BIP 390 document's later rawtr() extension and the earlier Core parser merge should not be equated without version-pinned tests. Grammar change · Signing implementation · Core release inventory
2026
Repository-wide administrative changes in January replaced the older Created header with Assigned. BIP 392 added the sp() context in March. An August change fixed a missing closing parenthesis in an **invalid-descriptor test example**, not the underlying signing mathematics. A **17 September** change reclassified the BIP from *Informational* to *Specification*, while its status remained **Draft**. Header process migration · Silent-payment integration · Test-vector punctuation fix · Type change

Software history is not specification status

Bitcoin Core PR #31244 opened in November 2024 and merged in July 2025. Its review found several descriptor-parser fuzz crashes in December 2024. A contributor provided reproduction inputs; Chow replied that fixes and unit tests had been added. These are contemporary development and review records for code before merge, not evidence of exploited public releases. Implementation review and comments

Bitcoin Core's version-pinned support inventory explicitly separates v30.0 parsing from v31.0 signing. A watch-only implementation that can display or scan for outputs is not necessarily a signer. Conversely, the 2026 sp() extension in BIP 390 is a proposal/specification fact; the inspected Core 31.0 and 32.1 support inventories do not independently establish implementation of that silent-payment combination. The BIP still says Draft even after Core shipped other supported forms. Core 31.0 · Core 32.1 · Maintained BIP header

Relevance to Ordinals and Bitmap

A descriptor can tell a wallet which output scripts belong to a group-controlled Bitcoin address. It does not decide which sat occupies an output, which inscription was transferred, or whether a Bitmap district or parcel claim is valid under a particular indexing rule. A correctly signed PSBT may still make an unexpected sat assignment if the constructing and signing applications failed to check the transaction's inputs and outputs. PSBT's role · Ordinals documentation

The archival value of BIP 390 is therefore less about on-chain Bitcoin land than about a transferable public description of who must reconstruct what before spending. The descriptor can support recovery of an output family, while the group's keys and decision-making record may live outside the blockchain. That is an interpretation of the specifications, not a documented Bitmap deployment.

Evidence boundaries and unfinished work

The canonical BIP's revisions and the Bitcoin Core pull requests are direct source-history evidence. Chow's public design explanations and review replies are contemporary first-party accounts. The claim that recovery is more reliable when ordering is canonical is the proposal's design rationale, not an independently measured recovery study. No claim is made here that the December 2024 fuzz crashes affected distributed binaries, that every wallet supports musig(), or that any existing Bitmap inscription used a BIP 390 descriptor.

Open question
Test the BIP 390 valid and invalid descriptors against version-pinned Core 30.0, 31.0 and 32.1 software. Separate parsing, watch-only derivation, signing, rawtr() recognition and the later sp() grammar instead of reporting one vague “support” result.
Open question
Trace independent wallet exports and recoveries using musig() descriptors. Did the 2025 repeated-key change affect interoperability with earlier implementations?
Open question
Confirm the first released implementations, if any, of BIP 392's sp(scan-private-key, musig(...)) form. Do not infer deployment from a specification example.
Open question
Re-run the August 2026 corrected negative test vector and check whether its earlier missing parenthesis led to an observable test-run failure in any published implementation.

From the archivist's desk

I followed a synthetic xpub expecting a grammar appendix. What I found was a peculiar chronology: working parser before wallet signer, a Draft specification after implementation, and an evolving language that eventually reached silent payments. The descriptor is not a public constitution for the signing group. It is a reproducible description of where its Bitcoin keys lead. The human agreement still has to survive somewhere else.

See also