Your Seed Phrase Is Just 128 Bits With a Checksum: BIP-39 Explained for Developers
If you have ever set up a self-custody crypto wallet, you have seen it: a screen with 12 or 24 plain English words and a stern warning to write them down. As developers we tend to treat that list like a password. It isn't. It is an encoding of raw entropy, and once you see how it is built, the security rules around it stop feeling like superstition. What the words actually encode Most wallets…
A seed phrase is a sequence of 12 or 24 English words used to represent an encoding of raw entropy. Developed as part of the BIP-39 standard, this phrase enables the generation of wallet keys and protects against brute-force attacks. The process begins with generating random entropy, which can be either 128 bits for a 12-word phrase or 256 bits for a 24-word phrase.
The entropy is then hashed using the SHA-256 algorithm and a checksum, consisting of 4 bits for 128-bit entropy or 8 bits for 256-bit entropy, is appended to the hashed result. Subsequently, the resulting string is divided into 11-bit chunks, each representing an index into a predefined list of 2,048 words. These indices are then mapped to the official wordlist to create the mnemonic phrase.
The checksum ensures the validity of the phrase by allowing the wallet to detect any mistyped words. Although a 128-bit seed phrase is considered secure against brute-force attacks, real-world threats such as phishing, malware, cloud backups, and loss of access are more likely. Therefore, it is crucial to store the phrase safely, ideally in a physical, durable format, and to avoid digitizing it or sharing it online.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.