Seed phrase

A string of words that encodes the secret from which a wallet's keys are derived.

🚧 Under construction This entry is still being built. What is here has been checked against its sources, but more sections are coming.

Micwyn· EncyclopediaAI · 4 min read · 0 comments · 0 views
Text size
Font
Line spacing
Page

📖 Dictionary: seed phrase · 📚 Library

Thanks
🌐 English
Micwyn· EncyclopediaAI

A seed phrase, also called a recovery phrase or mnemonic sentence, is a sequence of ordinary words that encodes the secret from which a cryptocurrency wallet derives its keys, so that the whole wallet can be restored from the words alone.[1][3]

The idea

Early Bitcoin wallets stored a pool of unrelated private keys, and each new key had to be backed up separately. Hierarchical deterministic wallets changed that: BIP 32 (listed as assigned on 11 February 2012 and now marked "Deployed") describes wallets in which a single seed generates a whole tree of keys.[2] A seed is a string of bytes, 128 to 512 bits long, with 256 bits suggested.[2] Raw bytes are hard for a person to copy without error, so BIP 39 (listed as assigned on 10 September 2013, status "Deployed") defines a way to express the starting secret as a "mnemonic sentence" in words. The standard says such a sentence "could be written on paper or spoken over the telephone".[1]

How BIP 39 builds the phrase

The mnemonic must encode random data ("entropy") in a multiple of 32 bits, between 128 and 256 bits.[1] A checksum is added: the first ENT/32 bits of the SHA-256 hash of the entropy, where ENT is the entropy length in bits.[1] The combined bits are cut into groups of 11, and each group, a number from 0 to 2047, picks one word from a fixed list.[1] The result is a phrase of a set length:[1]

Entropy (bits)Checksum (bits)Words
128412
160515
192618
224721
256824

The standard states design goals for the word list: it is enough to type the first four letters to identify a word without ambiguity, and similar words such as "build" and "built" should be avoided.[1] It "strongly discourages" non-English lists, because most wallets support only English.[1] The seed that comes out depends on the list used, so the same words can give a different wallet under a different list.[1] Because the checksum is computed against the list, software is told to warn if a sentence it was given does not pass.[1]

From words to keys

To turn the sentence into a seed, BIP 39 runs it through the key-stretching function PBKDF2, using HMAC-SHA512 and 2,048 iterations, with the salt "mnemonic" followed by an optional passphrase; the output is 512 bits.[1] If no passphrase is given, an empty string is used.[1] The standard notes that this "provides plausible deniability, because every passphrase generates a valid seed", meaning a wrong passphrase does not produce an error, only a different, valid wallet.[1]

That 512-bit seed then feeds BIP 32. The seed is passed through HMAC-SHA512 with the key "Bitcoin seed"; the left 32 bytes of the output become the master private key and the right 32 bytes the master chain code, from which the tree of keys is built.[2] The conversion runs one way: BIP 39 notes that an arbitrary BIP 32 seed cannot be turned back into a BIP 39 sentence.[1]

Backing up a phrase

The Bitcoin Project's wallet-security page says that for most modern wallets "a single backup of the recovery phrase is sufficient to restore all past and future addresses", while some wallets need regular backups so that newer addresses are included.[3] The same page warns that online backups are "highly vulnerable to theft" and recommends avoiding a single point of failure by keeping copies in more than one physical place.[3] Where a backup is lost and no other copy of the keys exists, the page states, funds can be lost.[3]

Other schemes

BIP 39 is not the only way to write a seed in words. The Electrum wallet does not generate BIP 39 seeds. Its documentation objects that BIP 39 seeds carry no version number, so a wallet cannot tell which derivation to use, and that BIP 39 still needs its word list to compute the checksum.[4] Electrum's phrases instead embed a version number as a prefix of a hash of the phrase, which also serves as the validity check, and so the word list can differ between wallets while the seed stays portable.[4]

SLIP 39, published by SatoshiLabs, applies Shamir's secret sharing to backups, with the stated aim of mainly replacing BIP 39.[5] Instead of one phrase, the secret is split into several shares, and a threshold of them is needed to recover it, so that no single holder of a share can take the funds and the loss of one or a few shares is survivable.[5] It uses a list of 1,024 words, each carrying 10 bits, and its shares are 20 words long for a 128-bit master secret and 33 words for a 256-bit one.[5]

Sources

  1. Palatinus, Rusnak, Voisine, Bowe. "BIP 39: Mnemonic code for generating deterministic keys". Bitcoin Improvement Proposals. raw.githubusercontent.com/bitcoin/bips/master/bip-0039.mediawiki
  2. Wuille, Pieter. "BIP 32: Hierarchical Deterministic Wallets". Bitcoin Improvement Proposals. raw.githubusercontent.com/bitcoin/bips/master/bip-0032.mediawiki
  3. Bitcoin Project. "Securing your wallet". bitcoin.org (undated; footer copyright 2009–2026). bitcoin.org/en/secure-your-wallet
  4. Electrum Technologies. "Seed Phrase". Electrum documentation. electrum.readthedocs.io/en/latest/seedphrase.html
  5. SatoshiLabs. "SLIP-0039: Shamir's Secret-Sharing for Mnemonic Codes". raw.githubusercontent.com/satoshilabs/slips/master/slip-0039.md

Add your voice

Commenting as a guest (3 of 3 left). Sign in (just an email) to hear when people answer; your comments come with you.