BOMBARCHIVE
Explore

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

The archiveBitcoin

BIP 88

BIP 88 (Hierarchical Deterministic Path Templates) specifies a language for describing which BIP 32 derivation paths are permitted. It is a way to express constraints on a family of paths, not a method of generating a seed, a new address format, a Bitcoin consensus rule or a complete output script descriptor. Its author, Dmitry Petukhov, introduced the idea publicly in July 2020 because rigid hardware-wallet path allowlists could prevent custom applications from working, while unrestricted paths could make a signer accept unexpected change destinations. Maintained specification · July 2020 author and reviewer discussion, preserved mailing-list mirror

The present BIP uses braces for alternatives and ranges, for example m/{44,49,84}'/0'/0'/{0-1}/{0-50000}. That notation was not the notation in the first public proposal. The July 2020 example used square brackets; the proposal also had a gap between its examples and its formal wildcard grammar. The changes are preserved in the Git history, rather than inferred from the current BIP alone. May 2021 delimiter revision · May 2021 wildcard clarification

What problem was being described?

A BIP 32 seed can derive a vast number of distinct keys. BIP 43 and BIP 44 established conventional purpose, account, receiving and change branches, and BIP 49 and BIP 84 chose additional purpose numbers for SegWit wallets. But real wallets and signing devices did not necessarily permit every path that BIP 32 could mathematically derive. A custom software wallet might request an unfamiliar path that an otherwise compatible signer rejected. Conversely, a signer willing to accept any path might be led to sign for a change output derived under a path the sender did not know how to recover. Motivation and constraints · Contemporary author explanation, 3 July 2020

Petukhov's proposal was to represent permitted derivation paths as data, so a device and an application could exchange or configure the same restrictions without each hard-coding the other's path layout. In his 3 July 2020 follow-up, he distinguished this from key-origin identification in descriptors: an origin says where a key came from; a path template can say what derivations a particular application allows. Those functions can overlap in notation without being identical in purpose. First-party design exchange · Intended uses

On 8 July 2020, Bitcoin Optech described the proposal as a possible aid to wallet portability, backups and bounded recovery scans. That is contemporary secondary reporting about a proposal, not proof that hardware wallets already supported it. The 2020 BIP draft itself cited walletsrecovery.org's pipe-separated illustrations of alternative paths as prior practice, while noting that the site had not proposed a machine-parseable template standard. The draft's assertion about what prior formats existed is the author's stated knowledge at the time, not an exhaustive survey of all wallet software. Contemporary Optech account · October 2020 draft source

The syntax and its boundaries

A full template begins with m/ and matches the entire derivation path. A template without that prefix is partial and can be composed with another template where an implementation supports that optional feature. A section may contain one fixed index, a * wildcard or a brace-delimited set of ordered, non-overlapping values and ranges. An apostrophe or h marks hardened derivation, increasing the compared index by 2^31. The specification requires full-template parsing and matching but makes partial-template operations optional. Syntax, full and partial templates, matching

m/{44,49,84}'/0'/0'/{0-1}/{0-50000}
           ^            ^         ^
        hardened     two branches  bounded index

{0-2,33,123}/*       partial template
*h/0                 hardened wildcard, then ordinary index zero

These examples are template strings, not wallet descriptors that can be imported to spend funds. The first expression matches mainnet, account-zero paths whose purpose is 44, 49 or 84, receiving/change branch is 0 or 1, and address index is 0 through 50,000. It does not identify whether a derived public key should become a legacy, wrapped-SegWit or native-SegWit script. That script decision requires other context, such as a conventional purpose rule or a descriptor. Exact BIP examples · Output-script description

Matching is a yes/no test on a supplied path: the number of path sections must match, and every index must fall within one of the corresponding section's allowed ranges. It does not itself generate keys, search the blockchain, identify which paths have previously been used or guarantee that a change output belongs to the expected wallet. A signer has to check the complete transaction and the relevant keys and scripts, not merely accept an index string that passes a pattern. This last security caution is an architectural consequence of the specification's limited matching task, not an additional guarantee supplied by BIP 88. Matching algorithm and motivation

The grammar rules also matter. Ranges must be ordered and non-overlapping; whitespace, duplicate slashes and leading zeros in positive integers are disallowed. A hardened section must be preceded only by hardened sections, and hardened-marker notation must agree within such a prefix. The document discusses further normalization rules for making equivalent templates share identical strings, but those are extra optional conditions, not the basic validity rules. Required constraints versus optional canonicalization

The source trail: 2020–2026

23 June 2020 — a document date
The initial draft's preamble said Created: 2020-06-23. The maintained BIP now says Assigned: 2020-06-23, after a general header-label migration. **That date is not evidence that the proposal already had number 88 in June 2020**; the original draft showed BIP: ?. Original draft header · Later preamble migration
2–3 July 2020 — public discussion
Petukhov's Bitcoin-Dev post of **2 July** supplied examples with [...] range notation. David A. Harding asked on **3 July** how the idea differed from descriptor key origins and which workflows required it. Petukhov replied that templates were intended primarily to **restrict** permissible paths, particularly for autonomous signers and change checking. The messages survive through a later-hosted contemporary mailing-list archive. Dated thread, first-party statements
26 October 2020 — submitted draft
Petukhov opened PR #1025 for an unnumbered bip-path-templates.mediawiki draft. Its first commit is **author-dated 26 October 2020**, but the canonical repository records its later integration with the PR in May 2021. A commit's authored date, its integration date and a BIP's header date answer different historical questions. Original file · PR timestamps
11–17 May 2021 — specification and numbering
Changes **author-dated 11 May** switched alternative/range delimiters from square brackets to braces and made the * wildcard explicit in the grammar. The earlier text had already used wildcard examples while its list of legal index-template types omitted the wildcard. On **15 May**, a commit renamed the draft to bip-0088.mediawiki, changed its title and marked it Proposed. PR #1025 merged on **17 May 2021, 23:20 UTC**. These changes were incorporated before the numbered proposal became part of the canonical BIPs main branch. Delimiter edit · Wildcard edit · Numbering · Merge record
26 May 2021 — an example corrected
The *h/0 example had said that the second index could be *any* non-hardened index, despite the literal zero. Commit 240de39b corrected the explanation to **non-hardened index 0**. It repaired the prose of an example; the path itself remained unchanged. Exact correction
2025–2026 — process classification
A bulk BIP-process edit changed BIP 88's header from **Proposed** to **Complete**. Its Git commit has an author date of **12 April 2025** and a canonical committer date of **12 January 2026**. The source change was a status-label migration, not a change to path matching and not independent proof of product adoption. **Complete** remains its canonical status as of **2 November 2026**. Process edit · Current BIP

A neighboring design, not a synonym for BIP 389

A similar problem appeared independently in Bitcoin Core's descriptor discussion. On 18 October 2019, issue #17190 proposed a single descriptor such as xpub...{0,1}/* for receiving and change paths. That predates the public BIP 88 mailing-list post. Its purpose was to describe multiple output-script branches, whereas Petukhov's later BIP standardizes allowed derivation-path constraints. The shared wish to express more than one path does not establish a shared formal grammar or interchangeable APIs. Original 2019 proposal · BIP 88 scope

When Ava Chow proposed a concrete multipath implementation in August 2021, the PR explicitly declined a general BIP 88-style expansion: many independent choices can produce combinatorial growth and surprising output sets. The design eventually specified by BIP 389 instead uses <0;1> pairs within descriptor key expressions. When several keys contain such a pair, their first alternatives expand together and their second alternatives expand together. It is not an unrestricted Cartesian product of all possibilities. The separate grammar also avoids conflicts with delimiters already used by descriptors, especially Taproot script expressions. Original PR rationale · Contemporary delimiter debate · BIP 389 specification

These are two legitimate but different design answers. A BIP 88 template may say which paths a signer should accept. A BIP 389 descriptor may say which related scripts a wallet should monitor. Neither by itself proves the owner of an Ordinals inscription or the validity of a Bitmap claim, which depend on Bitcoin history and additional interpretation rules.

Implementation evidence and limits

Petukhov's PR named three implementation lines: a C parser, a MicroPython-compatible Python parser and a class in python-bitcointx. The author also published a TLA+ finite-state-machine specification and described test data generated from it. These are first-party source and implementation claims, not a measured market share or a demonstration that production hardware wallets enforced the template rules. Submission and implementation notes · C implementation · Python implementation · Formal specification · Library repository

The Git history directly establishes textual revisions, and the original Bitcoin-Dev messages supply contemporary first-party motivation. Optech provides contemporary third-party interpretation. Neither class of source establishes how often the standard was used in the wild, whether every hardware device accepts the same grammar, or whether the examples correspond to a particular recovered wallet. A path template is useful context to preserve alongside a backup, but it is not the seed, the descriptor, the scan history or the funds themselves.

Open question
Find version-pinned production wallet or hardware-signer releases that parse and enforce BIP 88 templates, rather than inferring adoption from the author's reference implementations.
Open question
Reproduce the original square-bracket draft and the May 2021 brace-and-wildcard revision against corresponding versioned parsers, retaining explicit compatibility results.
Open question
Identify real recovery or signing failures where missing path restrictions, rather than missing seeds or wrong output scripts, were the decisive cause.

From the archivist's desk

I was following BIP 389's angle brackets and found an earlier language that tried to solve a different half of the same problem. A wallet needs to know what to look for, but a signer also needs to know what it is being asked to authorize. In 2020 those questions already sat close together, yet the surviving designs kept them separate.

The small May 2021 edits were the most useful surprise. Even a familiar-looking template string has a history: square brackets became braces, an implied wildcard became specified, and a sentence saying “any index” was corrected to “index zero.” None changed Bitcoin's underlying key mathematics. All changed what an implementer could reasonably take the document to mean.

See also