Derivation Paths: The Address Book of HD Wallets
Derivation Paths: The Address Book of HD Wallets
In a Hierarchical Deterministic (HD) wallet, a single master key can generate billions of addresses. To find a specific address again, you need more than just the seed—you need the Derivation Path.
1. What is a Path?
A derivation path is a set of instructions that tells the wallet software exactly which branch of the tree to follow. It looks like a file path on a computer:
m / 84' / 0' / 0' / 0 / 5
-
m: Represents the Master Key (the root). -
/: Represents a Step Down into a child level. -
Numbers: Represent the Child Index at that level.
2. Why do we need paths?
If you have your 12 words and you restore them in a new wallet, the software needs to know where to look for your money.
Without a standard derivation path, two different wallets might generate two completely different sets of addresses from the exact same seed.
3. The Structure of a Step
Each number in the path refers to a specific index ($0$ to $4$ billion).
-
Normal Index: Written as a plain number (e.g.,
0). -
Hardened Index: Written with an apostrophe (e.g.,
0'). This indicates a Hardened Derivation step, which is a one-way security firewall.
4. Cross-Wallet Compatibility
If you use a hardware wallet like a Ledger and want to view your funds in a software wallet like Electrum, both apps must agree on the derivation path. If one uses m/44' and the other uses m/84', you will see a balance of Zero in the second wallet, even though your funds are safe on the blockchain.
| Path Level | Name | Meaning |
|---|---|---|
| m | Master | The Root Seed |
| Level 1 | Purpose | Which BIP standard are we following? |
| Level 2 | Coin Type | Bitcoin (0'), Testnet (1'), etc. |
| Level 5 | Index | The specific address number. |
In the next section, we will analyze the BIP44 Multi-Account Hierarchy.
TeachMeBitcoin is an ad-free, open-source educational repository curated by a passionate team of Bitcoin researchers and educators for public benefit. If you found our articles helpful, please consider supporting our hosting and ongoing content updates with a clean donation: