What Is a Seed Phrase?
A seed phrase (also called a mnemonic) is a set of words randomly generated by a wallet that records the wallet's seed in a form people can read and write; the wallet uses it to compute the seed, and then derives all of its private keys from that seed. The common standard today is Bitcoin Improvement Proposal BIP39, under which a seed phrase has 12, 15, 18, 21 or 24 words. BIP39 explains that compared with handling a seed in raw binary or hexadecimal, a string of words is easier for people to work with: it can be written down by hand or passed on verbally.
A seed phrase (also called a mnemonic) is a set of words randomly generated by a wallet that records the wallet’s seed in a form people can read and write; the wallet uses it to compute the seed, and then derives all of its private keys from that seed. The common standard today is Bitcoin Improvement Proposal BIP39, under which a seed phrase has 12, 15, 18, 21 or 24 words. BIP39 explains that compared with handling a seed in raw binary or hexadecimal, a string of words is easier for people to work with: it can be written down by hand or passed on verbally.
How Is a Seed Phrase Generated?
Under BIP39, the wallet first generates a random number (entropy) of 128 to 256 bits whose length is a multiple of 32 bits, then takes the first few bits of its SHA-256 hash as a checksum, where the number of checksum bits is the entropy length divided by 32. The checksum is appended to the entropy, the result is split into groups of 11 bits, each group corresponds to a number from 0 to 2047, and that number is used to pick a word from the wordlist. For example, 128 bits of entropy plus a 4-bit checksum gives 132 bits and 12 words, while 256 bits of entropy plus an 8-bit checksum gives 264 bits and 24 words.
By BIP39’s design, every word in the wordlist can be told apart by its first four letters, easily confused pairs such as build and built do not both appear, and the list itself is sorted. BIP39 also notes that the vast majority of wallets support only the English wordlist, so it strongly discourages generating seed phrases from non-English wordlists.
A seed phrase should be generated randomly by a computer. BIP39 states that its purpose is to transcribe computer-generated randomness into a human-readable form, not to turn a sentence a user made up (a “brain wallet”) into a seed. Whether two people can generate the same Bitcoin address likewise comes down to whether the randomness is truly random.
How Is a Seed Phrase Related to Private Keys?
A seed phrase is not a private key itself but the starting point for computing private keys. BIP39 specifies that the seed phrase is used as the password and the string “mnemonic” plus a passphrase as the salt, and that PBKDF2 with HMAC-SHA512 is run for 2048 iterations to produce a 512-bit (64-byte) seed. This seed is then used to generate a deterministic wallet with BIP32 or a similar method, that is, an HD wallet: starting from one seed, an entire tree of keys and addresses can be computed along derivation paths.
The process is one-way. BIP39 points out that because the seed is produced by hashing the seed phrase, an arbitrary BIP32 seed cannot be expressed as a seed phrase; and because the seed is computed from the words themselves rather than the original entropy, converting a seed phrase into another language’s wordlist produces a completely different seed. Likewise, between a private key, public key and address, you can only compute the public key from the private key and the address from the public key, not the other way round.
What Is a Seed Phrase Passphrase?
A passphrase is an optional string of characters a user can add to protect a seed phrase. Under BIP39, the passphrase is combined with the string “mnemonic” to form the salt used to compute the seed; if no passphrase is set, an empty string is used instead. The same seed phrase with different passphrases therefore produces different seeds.
BIP39 also explains that every passphrase produces a valid seed, and thus a valid deterministic wallet, but only the correct passphrase opens the intended wallet; it calls this plausible deniability.
What Are the Limitations and Risks of Seed Phrases?
The most direct risks are leaks and loss. All the private keys in a wallet are derived from the same seed, so anyone who obtains the seed phrase (plus the passphrase, if one is set) can compute every private key. In a non-custodial wallet, the user keeps the seed phrase and no third party holds a backup; if the seed phrase is lost and there is no other backup, the assets can no longer be used.
BIP39 itself lists several shortcomings. First, the checksum is short: 1 in 256 random errors will be missed, and it cannot help correct errors; BIP39 requires software to compute the checksum using the wordlist and warn if it is invalid. Second, there was originally no versioning, so the seed phrase alone does not show which address format should be used; BIP39 says this is now largely addressed by descriptor wallets (BIP380). The authors of BIP39 have also proposed SLIP-0039 as a successor that improves on these shortcomings.
For businesses, another issue is people. If only one person holds the seed phrase, that person leaving, becoming unreachable or making a mistake directly affects the company’s assets, which is the problem of recovering wallet access after a key person leaves. With MPC, the private key exists as shares held separately by multiple parties from the moment it is generated, signing is completed jointly by those parties, and at no point is there a complete private key or seed phrase that can control the assets on its own.
Conclusion
A seed phrase is a wallet seed recorded as words. Under BIP39, 128 to 256 bits of randomness plus a checksum produce 12 to 24 words, PBKDF2 then computes a 512-bit seed, and all private keys are derived from that seed; a passphrase can add extra protection. Whoever has the seed phrase controls all the assets in the wallet, and losing it may make them unrecoverable.
Safeheron’s MPC Wallet-as-a-Service provides businesses with MPC key management and a policy engine.
Is your business still managing wallets with seed phrases?
Looking for a secure way to manage digital assets?
Talk to our experts and find the right solution for your business.
Request a DemoLooking for a secure way to manage digital assets?
Talk to our experts and find the right solution for your business.