Skip to content
PayableWithCrypto

Glossary

What Is BIP-32? Hierarchical Deterministic (HD) Wallets Explained

Editorial teamFact-checked against official sources Last updated 3 min read

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
  1. 1The problem it solved
  2. 2How the tree is built
  3. 3Hardened vs normal children
  4. 4What BIP-32 made possible
  5. 5A simple analogy
  6. 6Limits to know
  7. 7Practical checklist
  8. 8Common questions

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

  1. A seed (usually 512 bits from BIP-39) is hashed with HMAC-SHA512.
  2. The left half becomes the master private key, the right half the master chain code.
  3. Each child key is computed from its parent key, the parent chain code and an index number.
  4. 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?
No. BIP-39 turns random data into the words of a seed phrase and then into a binary seed. BIP-32 takes that seed and builds the key tree. Most wallets use both, but they are separate standards and some wallets use BIP-32 with a different backup format such as SLIP-39.
Do Ethereum and Solana wallets use BIP-32?
Most Ethereum-compatible wallets use BIP-32 derivation on the secp256k1 curve. Ed25519 chains such as Solana use a related scheme (SLIP-10) that only supports hardened derivation. The idea of one seed producing many keys is the same.
Who wrote BIP-32?
BIP-32 was written by Pieter Wuille and published in 2012. It is a Bitcoin Improvement Proposal, which is a design document rather than a law or certification, but it became the default for almost all wallets.
Are HD wallets less secure than single-key wallets?
Not in practice, as long as the seed is protected. Concentrating everything in one seed does mean one leak exposes everything, which is why the seed backup deserves more care than any individual key.

Sources

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.

Related terms

Compare cards Find a store