Guide library PENGER Academy

Anatomy of a Seed Phrase

Follow randomness into words, then separate a wallet’s binary index from the number recorded on a PENGER plate.

What you’ll learnTrace ENT → checksum → 11-bit indexes → PBKDF2 seed → BIP32 keys without confusing the layers.

Before you startNo cryptography required. Use only the public examples in this guide.

Entropy Sources and CSPRNG

BIP39 seed generation begins with a cryptographically secure pseudo-random number generator (CSPRNG). The quality of the entropy source is the foundation of the entire security model — if the randomness is predictable or biased, the resulting seed phrase is compromised regardless of word count.

Platform-Specific Entropy Sources

On modern systems, CSPRNGs are typically backed by operating system entropy pools:

  • /dev/urandom on Linux — draws from the kernel entropy pool seeded by hardware interrupts, disk timing, and other sources
  • CryptGenRandom / BCryptGenRandom on Windows — backed by the Windows CNG provider
  • SecRandomCopyBytes on Apple platforms — the system secure random-byte API; this does not imply that a wallet’s keys are stored in the Secure Enclave
  • crypto.getRandomValues() via the Web Crypto API in browsers — delegates to the OS CSPRNG

Entropy Length and Word Count

The entropy length directly determines the mnemonic word count. Each additional 32 bits of entropy adds exactly 3 words and 1 checksum bit:

ENT (bits) CS (bits) Total bits Words
128 4 132 12
160 5 165 15
192 6 198 18
224 7 231 21
256 8 264 24

The formula is: CS = ENT / 32, and words = (ENT + CS) / 11.

Use a trusted wallet’s cryptographically secure random number generator (CSPRNG). Personally chosen words, memorable patterns and brainwallet phrases can be predictable. A long phrase or a valid checksum does not make weak randomness secure.

SHA-256 Checksum Mechanism

After generating raw entropy, the system computes a SHA-256 hash of the entropy bytes. The first N bits of this hash (where N = entropy_bits / 32) are appended to the entropy as a checksum.

Step-by-Step Process

  1. Generate ENT bits of random entropy (e.g., 128 bits)
  2. Compute H = SHA-256(entropy_bytes)
  3. Take the first ENT/32 bits of H as the checksum
  4. Concatenate: entropy_bits || checksum_bits
  5. Split the result into 11-bit groups
  6. Map each 11-bit value to the corresponding BIP39 word
What a 4-bit checksum can reject
15 in 16
random 12-word sequences fail
1 in 16
passes the checksum

Passing does not prove that the randomness was secure or that this is your intended wallet.

Validation During Recovery

When a user enters a seed phrase for recovery, the wallet reverses the process: it converts words back to 11-bit indices, separates the checksum bits, recomputes the SHA-256 hash of the entropy portion, and verifies that the extracted checksum matches. A mismatch indicates a typo, missing word, or incorrect word order.

TRY IT · INSIDE A WORD

Explore the bits inside a seed phrase

Change the length, then pick a word. Solid bits are random data; outlined bits check that data. Checksum length = entropy length ÷ 32.

Random data
128 bits
Checksum
4 bits
Together
132 bits
Inspect a word
Word 12 of 12Bits 122–132

Word 12: bit positions 122–132. 7 entropy bits + 4 checksum bits.

A diagram of bit roles, not a usable seed phrase.

From Mnemonic to Master Key (BIP32/BIP44)

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.

Wordlist Design and Multilingual Support

The BIP39 English wordlist was engineered with strict constraints to minimize ambiguity and transcription errors across different contexts (handwriting, phone dictation, poor lighting):

  • 4-character uniqueness — no two words share the same first four letters, enabling unambiguous abbreviation on constrained displays
  • Readable vocabulary — the specification asks implementers to avoid similar words; four-letter uniqueness is the exact property of the English list
  • Common vocabulary — obscure or easily misspelled words were excluded
  • ASCII-safe — no diacritics or special characters in the English list

Non-English Wordlists

BIP39 includes official wordlists for multiple languages. Each wordlist is independently curated and contains exactly 2,048 words. Importantly, wordlists are not translations of each other — a seed generated with the English list cannot be recovered using the Japanese list. The wordlist used during generation must also be used during recovery.

Check the recovery wallet’s wordlist support. BIP39 recommends English for interoperability. Keep an existing phrase in its original language; translating the words changes the derived seed.

TRY IT · WORD NUMBERS

Compare plate positions with BIP39 indexes

The plate counts from 1. The wallet counts from 0. Move the slider or tap a punch to compare them.

Plate position0628
BIP39 index0627

Position 628 → wallet index 627.

Plate pattern · 12 weighted punches

2048
1024
512
256
128
64
32
16
8
4
2
1

512 + 64 + 32 + 16 + 4 = 628

Wallet encoding · 11 bits

01001110011

Attack Vectors and Entropy Analysis

Understanding the threat landscape for seed phrases helps calibrate security decisions. The primary attack vectors are:

Brute-Force Attacks

A 128-bit entropy seed (12 words) provides a search space of 2128 ≈ 3.4 × 1038 possible keys. At 10 billion guesses per second (far beyond current capability for full key derivation), exhausting this space would take approximately 1021 years. This is secure against any classical computing attack.

Partial Knowledge Attacks

If an attacker knows some words of your seed phrase, the remaining search space shrinks dramatically:

  • 11 of 12 words known — 2,048 candidates (trivially brute-forceable)
  • 10 of 12 words known — at most 4,194,304 raw candidates before checksum filtering
  • 8 of 12 words known — at most 244 raw candidates before checksum filtering

Do not treat fragments of a seed phrase as independently secure backups. A significant known portion may leave few enough combinations for an attacker to guess the rest. For threshold backups, use a compatible implementation of Shamir’s Secret Sharing such as SLIP39 instead of dividing the words by hand.

Side-Channel and Social Attacks

In practice, most seed phrase compromises do not involve brute-force. They come from phishing (fake wallet recovery pages), malware (clipboard hijacking, keyloggers), physical theft of backup material, and social engineering. Strong entropy is necessary but not sufficient — operational security is equally critical.

Each recovery component has a different job. The checksum detects some errors; entropy resists guessing; the passphrase changes derivation; the descriptor tells a wallet how to reconstruct its spending policy. None substitutes for the others.

Questions that remain

Can I choose my own seed words instead of random ones?

Technically you can construct a valid BIP39 mnemonic manually, but it is strongly discouraged. Humans are extremely poor at generating randomness — we gravitate toward patterns, familiar words, and predictable sequences. An attacker can exploit these biases to dramatically reduce the search space. Always use a CSPRNG-backed generator from a trusted wallet.

Is a 12-word seed phrase secure enough?

A correctly generated twelve-word BIP39 phrase contains 128 bits of entropy; twenty-four words contains 256. Neither checksum length nor PBKDF2 output length adds randomness to the mnemonic. For ordinary classical brute-force threats, protecting generation, backup and recovery is more useful than treating word count as the whole security model.

What happens if I lose one word from my seed phrase?

If you know the position of the missing word, there are only 2,048 candidates to try. Specialized open-source tools can test all possibilities in seconds by checking the checksum and derived addresses against known balances. If you don't know the position, it becomes 12 × 2,048 = 24,576 attempts — still feasible. Losing two or more words makes recovery exponentially harder and may require significant computation.

Can I split my seed phrase between multiple locations?

Splitting the word list is not a threshold backup: losing either half can make recovery impossible and each half reveals information. SLIP39 is a different backup format with a defined threshold and its own compatibility requirements. Do not cut a BIP39 phrase into shares yourself.

Are all 2,048 BIP39 words unique enough to avoid confusion?

The English list has unique first-four-letter prefixes. That does not mean every pair is visually or phonetically distinct. Record and check the full words whenever possible; abbreviations must be interpreted with the correct wordlist.

What is the difference between a seed phrase and a private key?

A private key authorizes signatures for a particular spending condition. A BIP39 mnemonic is an encoding of entropy that derives a seed; an HD wallet derives a tree of keys from that seed. One key can be used with different script or address types, and a complete recovery may require metadata as well as the words.

[ CHECK YOURSELF ]

Test Your Knowledge

Take a quick quiz to check your understanding of this guide.

Take the Quiz

5 questions per level · ~2 min