BIP32
BIP32 is the Bitcoin Improvement Proposal that defines hierarchical deterministic (HD) wallets: a whole tree of keys and addresses is derived from a single seed.
What Is BIP32?
BIP32 is the Bitcoin Improvement Proposal, published in 2012, that defines hierarchical deterministic (HD) wallets. Instead of generating unrelated keys that each need their own backup, an HD wallet derives all of its keys from one secret seed, arranged as a tree.
The seed produces a master private key and a chain code. From any key in the tree, child keys can be derived by index, and each child can have children of its own. The position of a key is written as a derivation path, for example m/84'/0'/0'/0/5. The same seed always gives the same tree, which is why one recovery phrase restores every address on a new device. The phrase itself is defined by a separate standard, BIP39.
BIP32 also allows public keys to be derived without private ones. An extended public key (xpub) can generate all receiving addresses of an account, so a companion app can show balances and new addresses while the private keys stay inside the hardware wallet.
This convenience has limits. Whoever holds an xpub sees the whole account history, so it is private information. And an xpub combined with a single non-hardened child private key reveals the parent private key. Hardened derivation, marked with an apostrophe, prevents that, which is why the upper levels of standard paths are hardened.
Real-World Examples
Example 1: A user pairs a Foundation Passport Prime with a companion app by exporting the account's extended public key. The app generates addresses and tracks the balance but cannot spend: every transaction has to go to the device for signing.
Example 2: After a hardware wallet is lost, its owner enters the recovery phrase on a replacement. Every key is derived again in the same order, and all addresses, including ones used years ago, reappear.
Example 3: A shop's server holds only an xpub and gives each order a fresh address. If the server is breached, the attacker learns the payment history but cannot move any coins.
Frequently Asked Questions
Is it safe to share my xpub?
An xpub cannot spend, but it is private information: whoever holds it can generate all receiving addresses of the account and see its whole history. Combined with a single non-hardened child private key, it also reveals the parent private key. Share it only with software that needs it, such as your companion app.
Why does one recovery phrase restore all my addresses?
BIP32 derives every key from one seed in a fixed tree, and the same seed always gives the same tree. Entering the recovery phrase on a replacement device derives every key again in the same order, so all addresses reappear, including ones used years ago. The phrase itself is defined by a separate standard, BIP39.
What does the apostrophe in a derivation path mean?
It marks hardened derivation, as in m/84'/0'/0'/0/5. Hardening prevents an xpub combined with a non-hardened child private key from revealing the parent private key. That is why the upper levels of standard paths are hardened, while the lower levels stay non-hardened so an xpub can generate addresses.
Ready to Choose a Secure Wallet?
Use our tools to find the right hardware wallet for your needs.