Your Ultimate Backup for Sovereign Ownership
📖 Concept Explained
A seed phrase (or mnemonic phrase) is a human-readable backup of your Bitcoin wallet’s private keys. It consists of 12 or 24 words from the BIP-39 standard wordlist (2,048 words). These words encode entropy (randomness) to deterministically generate all keys in your wallet.
Key Components
Entropy: Random data (128 or 256 bits) used to create the phrase.
Checksum: Extra bits (4 or 8) to detect errors.
Word Mapping: Entropy + checksum mapped to BIP-39 words.
🖼️ Visualizing Seed Phrase Creation
How to Read the Diagram:
Entropy: Randomness converted into binary bits.
Checksum: Ensures integrity (prevents typos).
Word Mapping: Each 11-bit chunk maps to a BIP-39 word.
Output: Human-readable backup phrase.
💡 Examples
1. Real-World Analogy
Your seed phrase is like a master key that can rebuild every lock (private key) and safe (address) in your Bitcoin vault. Lose the master key, and your vault is permanently sealed.
2. Code Snippet (Generating a Seed Phrase)
from bitcoinlib.mnemonic import Mnemonic
# Generate a 12-word seed phrase
entropy_bits = 128 # Options: 128 (12 words) or 256 (24 words)
mnemonic = Mnemonic().generate(entropy_bits)
print("Seed Phrase:", mnemonic)
# Derive first Bitcoin address
from bitcoinlib.wallets import Wallet
wallet = Wallet.create('demo_wallet', keys=mnemonic)
print("First Address:", wallet.get_key().address)
Output:
Seed Phrase: gravity habit coffee tower ... (12 words)
First Address: bc1q2w7erqk6j3m4n5t6z7x8c9v0d...
🔢 Precision in Numbers
12 Words:
Entropy: 128 bits
Checksum: 4 bits (SHA-256 hash of entropy)
Total: 132 bits → Divided into 12 × 11-bit chunks.
24 Words:
Entropy: 256 bits
Checksum: 8 bits
Total: 264 bits → 24 × 11-bit chunks.
🛠️ Exercise
Verify Your Seed Phrase:
Visit Ian Coleman’s BIP-39 Tool (offline).
Enter your seed phrase to see derived addresses.
Check if they match your wallet’s addresses.
💬 Engagement Question
Would you trust a password manager with your seed phrase, or only physical storage? Why?
Share your answer using #BitcoinBasics!
🔑 Key Takeaway
Seed phrases are the only backup for self-custodied Bitcoin. Store them offline (metal plates > paper) and never digitize them.
Next: On Day 28, we’ll explore hardware wallets—the gold standard for securing seed phrases.