BOMBARCHIVE
Explore

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

The archiveBitcoin

BIP 389

BIP 389 (Multipath Descriptor Key Expressions) extends BIP 380's Bitcoin output-script descriptor language so that one expression can describe related BIP 32 derivation branches. Its familiar /<0;1>/* form can represent a wallet's receiving and change branches without repeating almost the same descriptor twice. This is a wallet-description convention, not a Bitcoin consensus rule, a new address type or a method of deriving private keys. Maintained first-party specification

BIP 389 remains Draft in the canonical BIPs repository as of 2 November 2026, even though Bitcoin Core has shipped an implementation. The BIP is assigned 26 July 2022; its original pull request merged in June 2023. The implementation story is older still: a Bitcoin Core issue raised the problem in 2019, and the implementation pull request opened in 2021. Its merge in August 2024 should not be confused with a released binary: tagged Bitcoin Core 28.0–28.2 source lacks multipath parsing, while 29.0 contains it. Original Core issue · BIP proposal · Implementation PR · Version-pinned source

The problem: two almost identical descriptions

A conventional hierarchical wallet may receive payments on one set of addresses and send change to another. In a BIP 44-style layout, the immediate branch indexes are typically 0 (external receiving) and 1 (internal change). The keys and expected output scripts can otherwise be identical in structure. Output descriptors made both paths expressible, but originally as separate strings. That mattered for backups, multisignature coordination and exports: two almost identical records could be copied inconsistently or one could be omitted. BIP 44 branch convention · BIP 380 grammar

The following is schematic notation using XPUB as a placeholder, not a usable wallet descriptor:

wpkh(XPUB/0/*)       receiving
wpkh(XPUB/1/*)       change

wpkh(XPUB/<0;1>/*)   both branches

The new form expands to the first two expressions. It does not change the generated child keys or scripts, provided the same account extended key and script function are used. The notation removes duplicated description, not the need to check which scripts a restoring wallet actually scans. Specification and test vectors

2019–2021: the notation before the BIP

On 18 October 2019, Bitcoin Core issue #17190 proposed describing a complete receiving-and-change wallet with one descriptor, initially illustrating xpub...{0,1}/*. That issue is a contemporary design proposal, not evidence that the syntax was implemented in 2019. Dated issue and original example

On 30 August 2021, Ava Chow opened Bitcoin Core PR #22838 with the more restricted <0;1> syntax. The original explanation rejected a general BIP 88-like template expansion because multiple independent choices could produce a large number of combinations and surprising outputs. The author also explained that angle brackets and a semicolon avoided using commas, which already separate arguments inside expressions such as multi(). The earlier curly-brace suggestion therefore should not be silently presented as BIP 389 syntax. BIP 88 had a different historical purpose: its July 2020 draft constrained permissible derivation paths, initially with square-bracket ranges; the author changed those ranges to braces in May 2021. BIP 389 deliberately chose a narrower, paired expansion for descriptors, rather than arbitrary independent path alternatives. Original BIP 88 discussion · BIP 88 syntax change · Descriptor scope 2021 PR rationale · Contemporary syntax discussion

This is an instructive case of an implementation proposal preceding its BIP number. However, a pull request being open is not equivalent to its code being merged, and a merged implementation is not itself proof of release adoption.

2022–2023: an assigned number and a debated grammar

The original BIP source commit is author-dated 26 July 2022. Its Git committer timestamp is 9 February 2023. The public BIP #1354 opened on 15 August 2022 and merged on 29 June 2023. These dates refer to different records: draft authorship, a stored Git commit, a pull request and publication into the canonical BIPs branch. The original preamble labelled the proposal Informational; the currently maintained version labels it Specification. Original file and timestamps · PR record · 2026 type update

Reviewers debated whether the new notation should be limited to exactly two paths, whether it should support other descriptor-expansion schemes, and how different key expressions should be combined. A January 2023 commenter said implementations of the proposed approach already existed. That is contemporary implementer testimony, not an independently audited list of compatible released wallets. The final specification allows tuples of more than two alternatives, but insists on synchronized expansion when several extended keys appear in one descriptor. Original review discussion · First-party implementation claim

How multipath expansion works

The grammar adds at most one multipath element within any one extended-key derivation expression, with two or more numbered alternatives. Earlier and later ordinary derivation steps can remain fixed, and a final /* still ranges over child indexes. The tuple can appear somewhere other than the last fixed derivation step. Duplicate alternatives within one tuple are invalid. A multipath alternative is not permitted in the key-origin bracket that describes how the supplied key was reached. Hardened alternatives remain subject to BIP 32's requirement for appropriate private derivation material. Current grammar and invalid examples · Hardened derivation

In a multisignature expression, each key with a tuple must offer the same number of alternatives. Expansion proceeds in lockstep, rather than taking a Cartesian product of every possible combination. For example, this schematic descriptor:

multi(2,XPUB_A/<0;1>/*,XPUB_B/<2;3>/*)

represents two descriptors pairing A/0 with B/2, and A/1 with B/3. It does not additionally pair A/0 with B/3 or A/1 with B/2. Both placeholders make the example deliberately non-importable. This detail is essential: an apparently concise description must not quietly change a multisignature wallet's intended key combinations. Multikey test vectors and lockstep rule

The convention that the first branch receives payments and the second handles change applies to the two-path wallet use case. A tuple with three or more values does not, by itself, assign familiar receiving/change roles to every resulting descriptor. Nor does the descriptor encode a scan range, its creation time, wallet labels or a history of which outputs were spent. Specified receive/change ordering · Bitcoin Core import documentation

Merged code, and the release it actually reached

The long-running Bitcoin Core PR #22838 merged on 28 August 2024, almost three years after opening. It changed descriptor parsing, expansion, relevant RPC behaviour and wallet imports. An import can expand a multipath string into separate stored descriptors; for exactly two elements, Bitcoin Core treats the second as internal/change. A descriptor export from that wallet should not be assumed to preserve the imported multipath spelling unchanged. Merged implementation · Merge commit · Tagged RPC source

A useful version trap: the PR's August 2024 merge date places it before the release of Bitcoin Core 28.0, but that alone does not mean 28.0 shipped the change. Inspection of the tagged src/script/descriptor.cpp files finds no multipath parser in 28.0, 28.1 or 28.2; the tagged 29.0 file contains allow_multipath handling. The GitHub release for 29.0 was published on 15 April 2025. This version-pinned comparison is stronger evidence of the feature's presence in a release than projecting the merge date onto the next version number. It does not identify the first third-party wallet to support multipath descriptors. 28.0 source · 28.2 source · 29.0 source · Release artifact and date

The 29.0 source also exposes a subtle interface distinction: getdescriptorinfo's descriptor field represents the first expanded path, while a separate multipath_expansion field provides all expanded forms. The supplied descriptor's checksum and the program's canonical export need not be interchangeable strings. For restoration or backup, preserve the original intended branch structure and check the target wallet's import behaviour, not merely the response's first descriptor. Tagged getdescriptorinfo implementation · Tagged wallet RPC implementation

The draft kept changing after implementation

On 9 July 2024, BIP 389 explicitly prohibited duplicate tuple values. On 29 June 2023, the BIP repository added valid and invalid test vectors alongside the initial merge. Later maintenance did not stop after the Core implementation: on 6 August 2026, edits removed uppercase H as a hardened-derivation marker and corrected a missing closing parenthesis in a test vector. On 17 September 2026, the BIP's metadata changed its type from Informational to Specification, while keeping its status Draft. These are specification and editorial changes; neither metadata change is a Bitcoin network activation. Duplicate-path prohibition · Test-vector additions · Hardened-marker correction · Vector correction · Type change

Wallet recovery, Ordinals and the limits of a descriptor

BIP 389 reduces duplication when two branches share the same keys and script structure. It is not a substitute for BIP 39 seed material, account-purpose conventions such as BIP 84 and BIP 86, or the correct script expression. A receiving and change pair does not automatically cover a wallet's other accounts, scripts or unusual derivation paths. A restoring wallet must still select ranges and examine relevant chain history. Scope · Discovery assumptions

For Ordinals and Bitmap, this is a useful boundary rather than a direct protocol feature. A descriptor can express scripts that receive inscriptions or control UTXOs, including relevant Taproot key paths. It does not encode which sats are inscribed, how a sat moved between outputs, whether an inscription was revealed from a script path, or how a Bitmap rule interprets a claim. Those require the transaction history and separate indexing and interpretation rules. The relation is an architectural inference from the distinct documented systems, not a claim that BIP 389 was designed for Ordinals. Ordinals commitment and reveal · Descriptor scope

Evidence and open research

The issue and PR discussion are contemporary first-party design records. The commit histories and tagged source files are direct documentary evidence for proposal revisions and code present in a release tree. Release artifacts do not establish user uptake; a January 2023 comment claiming implementations existed is identified as participant testimony. No independent survey of third-party support was made here.

Open question
Identify a tagged third-party wallet release that supported multipath descriptor import before Bitcoin Core 29.0, and test actual export round-trips using harmless public keys.
Open question
Reproduce BIP 389's multipath test vectors against version-pinned Bitcoin Core 28.x and 29.0 binaries and retain a reproducible parser-compatibility record.
Open question
Establish whether every intermediate proposal variant from the 2019 issue and 2021 PR had independently released implementations, rather than treating proposal text as deployed syntax.

From the archivist's desk

I started with a red link left behind by BIP 380, expecting a small appendix about angle brackets. Instead I found a surprisingly useful lesson in chronology. The idea appears in 2019, a concrete implementation is proposed in 2021, the BIP lands in 2023, the code merges in 2024, and the inspected release tags put it in 2025. The sentence “implemented in 2024” hides an important distinction between a source branch and the software people could actually install.

The broader point is modest but durable: a wallet can know every key and still need a trustworthy description of which branches, scripts and ranges to search. Multipath syntax makes that description shorter; it does not make it unnecessary.

See also