Glossary
What Is BIP-32? Hierarchical Deterministic (HD) Wallets Explained
Definition
BIP-32 (HD wallets): BIP-32 is the Bitcoin Improvement Proposal that defines hierarchical deterministic (HD) wallets, where one master seed produces a whole tree of private and public keys.
On this page
BIP-32 is the Bitcoin standard for hierarchical deterministic (HD) wallets: one master seed generates a tree of keys, so a single backup covers every address you will ever use. Published in 2012 by Pieter Wuille, it is the reason a 12 or 24-word seed phrase can restore years of activity across many accounts.
The problem it solved
Early Bitcoin wallets created a fresh random private key for each new address and stored them in a file. Every new address meant a new backup. People who restored an old backup lost any coins sent to addresses created afterwards. Reusing one address avoided that problem but destroyed privacy (see address reuse).
BIP-32 made key creation deterministic: the same seed always yields the same keys in the same order.
How the tree is built
- A seed (usually 512 bits from BIP-39) is hashed with HMAC-SHA512.
- The left half becomes the master private key, the right half the master chain code.
- Each child key is computed from its parent key, the parent chain code and an index number.
- Children can have children of their own, forming levels such as purpose, coin, account, change and index. The address of a key in the tree is its derivation path.
Hardened vs normal children
| Feature | Normal (non-hardened) child | Hardened child |
|---|---|---|
| Index range | 0 to 2^31 - 1 | 2^31 and above (written 0’, 1’ …) |
| Can be derived from parent public key? | Yes | No, needs parent private key |
| Enables watch-only tracking from an xpub | Yes | No |
| Risk if one child private key leaks with parent xpub | Parent private key can be computed | Contained |
This trade-off explains the usual design: hardened steps down to the account, normal steps below it. An account-level xpub can then generate receiving addresses for a watch-only wallet or a merchant tool, while other accounts stay separated.
What BIP-32 made possible
- One backup forever. New addresses do not need new backups.
- Fresh address for every payment. Wallets can show a new receiving address each time at no cost.
- Watch-only and air-gapped setups. An online computer holds only public data; the signing device holds the seed.
- Multiple accounts from one seed. Separate a spending wallet from savings without a second backup.
- Hardware wallets. Devices can keep the seed offline and export only public keys.
A simple analogy
Think of the seed as a master copy of a building’s key-cutting pattern. From it a locksmith can cut a key for any room, in a fixed order, as often as needed. The chain code is the part of the pattern that decides how each next key is shaped. Losing a single room key is a contained problem; losing the master pattern is not. That is why hardware wallets keep the seed on the device and only ever hand out public “room numbers” (addresses) to your computer.
Limits to know
- BIP-32 says nothing about how you back up the seed; that is BIP-39 or alternatives like Shamir backup.
- It does not standardise paths; that came later in BIP-44, 49, 84 and 86.
- If the seed leaks, every key in the tree leaks. A passphrase or multisig adds a second factor.
- Wallets that use non-standard paths can make restores in other apps confusing.
Practical checklist
- Confirm your wallet is HD (almost all modern ones are) so one backup covers all addresses
- Record the address type or path along with the backup
- Use separate accounts for spending, savings and any xpub you share
- Never export single private keys from an account whose xpub is shared
- Test-restore on a second compatible app
For a hands-on walkthrough of setting up a device built on these standards, see hardware wallet setup and the broader self-custody wallet security guide.
Frequently asked questions
Is BIP-32 the same as BIP-39?
Do Ethereum and Solana wallets use BIP-32?
Who wrote BIP-32?
Are HD wallets less secure than single-key wallets?
Sources
- BIP-32: Hierarchical Deterministic Wallets
- BIP-39: Mnemonic code for generating deterministic keys
- BIP-44: Multi-account hierarchy
Facts were checked against these pages on the date shown above. Terms change; confirm on the official page before acting. General information, not financial, tax or legal advice. See our methodology.