BIP-32 (HD Wallets)

The standard for deriving many keys from one seed in a tree, so a single backup restores a whole wallet.

Basically

One phrase can create thousands of Bitcoin addresses. Back it up once, and you can restore everything.

Key Takeaways

  • BIP 32 defined hierarchical deterministic wallets: a whole tree of keys derived from one master seed.
  • One backup restores every address your wallet will ever create.
  • A shared derivation structure lets different wallet software work together.

The problem it solved

Non-HD wallets needed a new independent key for every address, with a separate backup for each key. One hundred addresses meant one hundred secrets to safeguard. Managing that was error-prone, and reusing addresses to avoid it reduced your privacy.

BIP 32 showed how to derive a tree of keys from a single master seed using a chain code. A seed phrase of a couple dozen words encodes every key the wallet has made or ever will make, and restoring that phrase rebuilds the tree exactly.

Hardened vs normal derivation

Normal child keys can be derived from the parent public key, which makes xpub watch-only wallets possible. Hardened derivation cannot do this, so it protects branches from a leaked xpub. BIP 44 standardised which branches hold which coins and accounts, so a phrase backed up in one wallet restores in another.

0

← All 1876 glossary terms