The mnemonic phrase is not used directly as a cryptographic key. Instead, it undergoes a key-stretching process to produce a 512-bit seed, which then feeds into hierarchical deterministic key derivation.
PBKDF2 Key Stretching
The mnemonic string (space-separated words, UTF-8 NFKD-normalized) is passed through PBKDF2-HMAC-SHA512 with 2,048 iterations. The salt is the string "mnemonic" concatenated with an optional user-supplied passphrase (the "25th word"):
PBKDF2-HMAC-SHA512
seed = PBKDF2(
password: mnemonic_string, // "abandon ability able ..."
salt: "mnemonic" + passphrase, // "mnemonic" or "mnemonicMySecret"
iterations: 2048,
dkLen: 64, // 512 bits
PRF: HMAC-SHA512
)
The 2,048 iterations provide a deliberate computational cost that slows down brute-force attempts against weak passphrases, while remaining fast enough for legitimate use.
BIP32 Master Key Derivation
The 512-bit seed is fed into HMAC-SHA512 with the key "Bitcoin seed". The output is split into two 256-bit halves:
- Left 256 bits — the master private key
- Right 256 bits — the master chain code (used for child derivation)
Derivation Paths (BIP44/BIP84/BIP86)
The master key feeds into BIP32 hierarchical deterministic key derivation. Standardized paths determine which specific key pair is generated for each coin and account:
Derivation Paths (BIP44 / BIP84 / BIP86)
m / purpose' / coin_type' / account' / change / address_index
| Path |
Standard |
Address Type |
| m/44'/0'/0'/0/0 |
BIP44 |
Bitcoin Legacy (P2PKH) |
| m/44'/60'/0'/0/0 |
BIP44 |
Ethereum |
| m/49'/0'/0'/0/0 |
BIP49 |
Bitcoin Nested SegWit (P2SH-P2WPKH) |
| m/84'/0'/0'/0/0 |
BIP84 |
Bitcoin Native SegWit (P2WPKH) |
| m/86'/0'/0'/0/0 |
BIP86 |
Bitcoin Taproot (P2TR) |
Each path segment narrows from the master key to a specific purpose, coin, account, and address index. The apostrophe (') indicates hardened derivation, which prevents child key compromise from leaking parent key information.
Entropy, the BIP39 seed and BIP32 master material
| Layer |
Length / role |
| Mnemonic entropy |
128–256 random bits before checksum |
| BIP39 seed |
64 bytes produced by PBKDF2; not a private key |
| BIP32 master material |
HMAC output split into private-key candidate and chain code; invalid candidates are rejected per BIP32 |
Source: BIP39: generation and seed derivation.
Source: BIP32: master and child keys.