BIP 32 (Hierarchical Deterministic Wallets) is Pieter Wuille's proposal for deriving a tree of Bitcoin keys from one recoverable seed. A branch of that tree can be shared for receiving or auditing payments without handing over its spending keys. The standard addresses two older wallet problems at once: backups of independently generated keys could become stale, and a single deterministic chain was difficult to share selectively. It is a wallet application specification, not a transaction format or a Bitcoin consensus rule. Current specification
The BIP bears an assigned date of 11 February 2012. But its earliest surviving draft located in the inspected Git repositories is a 29 May 2012 source commit, and that draft is not the algorithm familiar to present-day wallet users. In particular, it has no hardened derivation, uses multiplication rather than addition for child keys, and proposes a different serialization format. The documented 2013 revisions changed those details. The distinction is important: a date printed in a specification is not a complete revision history. May 2012 draft commit · October 2013 preserved revision
Before the hierarchy
The original Bitcoin client generated independent private keys and maintained a finite reserve, the Bitcoin key pool, to reduce the danger of restoring an outdated wallet backup. Its default 100-key pool could be exhausted; it was not a way to regenerate an unlimited future address sequence. Deterministic wallets instead derive a sequence from a recoverable starting secret. An earlier public proposal by Gregory Maxwell in June 2011 distinguished type 1 deterministic wallets from type 2 designs that allowed addresses to be generated using public derivation information. Electrum implemented its own deterministic recovery in November 2011. Neither predecessor is thereby proved to have implemented the later BIP 32 format. Maxwell's contemporary proposal · First Electrum source · Original key-pool implementation
The BIP explicitly credits Maxwell for the type-2 idea and discussions, Alan Reiner for an Armory implementation and suggestions, Eric Lombrozo for review, and Mike Caldwell for the recognizable extended-key version bytes. Those acknowledgements are first-party statements in the maintained proposal, not independent dates for every implementation or conversation. Acknowledgements
The surviving 2012 draft
On 29 May 2012, a commit titled BIP 32 by sipa added bip-0032.md to genjix/bips. It credited Wuille as author, labelled the document Draft and contained the date 11-02-2012. That is direct evidence of the file present in May; it does not independently establish when the author first circulated it or whether users ran compatible software then. Dated commit and full original patch
The core proposal already contained a 32-byte chain code alongside each private or public key, HMAC-SHA512 for child derivation, a tree of numbered paths, and a master key derived from a seed with the HMAC key string Bitcoin seed. The motivation was practical: a webshop could generate fresh receiving addresses without keeping the keys required to spend its takings on the webserver. Original specification
But every child in this draft used an HMAC input constructed from the parent public key and child index. It set a child private key to the parent private key multiplied by the left half of that HMAC result (modulo the curve order). A corresponding extended public key could derive the child public key. There was no separate child-index range requiring the parent private key as HMAC input. The default account layout was expressed as m/i/0/k and m/i/1/k, without a hardened account boundary. Original child derivation and wallet structure
The draft's serialized extended keys also differed. It proposed one-byte version prefixes and variable total lengths of 74, 75 or 107 bytes before checksum, depending on key representation. The modern 78-byte payload with xpub/xprv prefixes is not something to read backwards into that first artifact. The file is a historical draft, not a safe set of modern interoperability instructions. Original serialization
2013: private-only branches and changed arithmetic
The maintained BIP's own revision log identifies three milestones: 16 April 2013 added private derivation for child indices at or above 0x80000000, 30 April changed derivation from multiplication by the HMAC left half to addition, and 25 May added test vectors. These dates are author-maintained change-log entries. A separate, directly preserved artifact confirms the resulting design: on 21 October 2013, Peter Todd imported a Bitcoin Wiki revision identified as 18 October into the canonical BIPs repository. That version already includes the two derivation classes, addition and test vectors. The Git import should not be mistaken for the date those 2013 changes were first written. Maintained revision log · 2013 archived Wiki revision and diff
The difference between the two derivation classes is deliberate. For a normal (non-hardened) child, the HMAC input uses the parent public key. The child can therefore be derived in public form by a party holding the parent extended public key. For a hardened child, it uses the parent private key instead; public-only derivation across that edge fails. The hardened terminology was formalized in a 2014 revision, after the private-only branch mechanism had appeared. In contemporary path notation, m/0'/1/5 crosses a hardened boundary at 0' and then two normal derivations. October 2013 mechanism · 2014 terminology revision
These changes also mean that a wallet following the original 2012 multiplication rule would not derive the same child private keys as a wallet following the modern addition rule for the same seed and path. One seed is not a universal backup without the derivation scheme and relevant wallet conventions. The difference follows from the preserved formulas; it is not evidence that a particular 2012 wallet shipped the draft and subsequently lost compatibility. Earlier formula · Current formula
What an extended key contains
The current specification starts with a seed of 128 to 512 bits and computes HMAC-SHA512 using the key string Bitcoin seed. The two halves supply the master private key candidate and master chain code. Each extended key combines a private or public secp256k1 key with a 32-byte chain code. Child derivation consumes the chain code, child index and either the parent public key or private key, according to the derivation class. The chain code is not itself a spendable private key, but is essential derivation material. Master key generation and CKD functions
Modern extended-key serialization is 78 bytes before its four-byte checksum: four version bytes, one depth byte, four parent-fingerprint bytes, four child-index bytes, 32 chain-code bytes, and 33 key-data bytes. Base58Check produces familiar 111-character xprv or xpub strings on mainnet, and tprv/tpub on testnet. A four-byte parent fingerprint is a short locator subject to collisions, not a unique proof of ancestry. An xpub is also not a Bitcoin receiving address; it permits a family of public keys to be derived. Addresses and actual locking scripts still have to be constructed from appropriate keys. Serialization and key identifiers
The public-key trap
An extended public key can be useful for a watch-only wallet, bookkeeper or payment server. It can also be a significant privacy disclosure: whoever obtains it may derive and associate the non-hardened public keys beneath it. An xpub alone cannot sign as its corresponding private key. But the combination of a parent extended public key and one non-hardened child private key is more dangerous than either item alone. Security and implications
Under the present additive derivation rule, a child private key equals the parent private key plus a value calculable from the parent extended public key and child index, modulo the curve order. Someone holding the public parent and the child's private key can therefore subtract that value to recover the parent private key, compromising the parent's descendants as well. For a path of normal derivations the effect can propagate upward to the known public ancestor. A hardened boundary prevents that particular public-parent calculation from crossing it. This is a defined property of BIP 32, not a claim that an xpub by itself enables theft or that hardened keys make every other wallet risk disappear. Security implications
A particularly revealing editorial artifact survives from 20 May 2014. David A. Harding changed one sentence of the BIP to clarify that the parent extended private key, rather than merely the child, is exposed in this combination. His commit message explains that he had originally interpreted the warning incorrectly. This is a direct record of a consequential documentation correction, not evidence of a documented theft or a newly discovered flaw on that day. Clarification and commit explanation
Recovery conventions outside BIP 32
BIP 32 specifies the key tree and proposes a default organization of accounts, receiving branches and change branches. It does not itself require users to back up a fixed number of words. BIP 39 separately specifies mnemonic-to-seed derivation; the resulting bytes can initialize a BIP 32 tree, but a BIP 39 phrase is not an xprv or a derivation path. Electrum had its own earlier mnemonic system, so a shared vocabulary of seed and words does not establish compatibility. BIP 39 specification · BIP 32 specification
The later BIP 43 proposed a hardened purpose field because claiming BIP 32 support did not guarantee that two wallets used the same account layout. BIP 44 specified the five-level pattern m / purpose' / coin_type' / account' / change / address_index and a 20-unused-address gap limit for discovery. Script-specific wallet conventions can choose other paths. Even a perfectly preserved seed will not tell a recovering wallet which branches, script types and previously used addresses to examine. BIP 43 motivation · BIP 44 layout and discovery
For Ordinals and Bitmap, these are still wallet discovery conventions rather than rules written into the Bitcoin transaction output. The chain records outputs, spending conditions and transactions; it does not record the owner's xpub, seed words or path label. Restoring keys and then locating an inscription-bearing output are related but separate tasks. This is an inference from the wallet and transaction data models, not a claim that BIP 32 implemented either later application. Wallet-layer specification
Status, sources and open research
The 2012 genjix/bips commit and the 2013 canonical Git import are direct source artifacts. The April–May 2013 dates come from the BIP's maintained change log, supported as a sequence by the differing preserved draft and October text, but not individually reproduced here from April Wiki snapshots. The May 2014 clarification is a directly dated source change. The BIP was promoted to Final in a February 2016 repository change and now carries Deployed status after later process changes. Those labels are repository statuses, not a count of implementations or a claim of Bitcoin consensus enforcement. Final-status change · Current metadata
Recover contemporaneous February–April 2012 circulation or review of the original BIP, including what the assigned date refers to, without treating the May Git commit as the invention date.
Recover versioned April and May 2013 Bitcoin Wiki revisions that independently pin the individual derivation changes rather than relying only on the maintained revision log and October archive import.
Identify authenticated early wallet releases implementing the multiplication-only draft, the intermediate hardened-multiplication scheme or the later additive scheme; separate code availability from evidence of user deployment.
From the archivist's desk
The old draft made the same promise as the current specification: one secret, many keys, selective sharing. But the derivation formula, the security boundary and even the way an extended key was written down changed. I find the 2014 clarification especially useful. A single missing word, parent, could make readers underestimate the consequences of combining an extended public key with a leaked child private key. The source history is part of understanding the design, not merely a footnote after it.