Wallets and Keys
Cryptocurrency wallets don't actually store your coins. Instead, they store cryptographic keys that prove your ownership and allow you to sign transactions. Understanding the difference between public and private keys is essential for keeping your funds safe.
Key Generation Flow
ββββββββββββββββββββ
β Random Number β (256-bit private key)
β Generation β
ββββββββββ¬ββββββββββ
β
βΌ
ββββββββββββββββββββ
β PRIVATE KEY β e.g., 0x8f4a2b1c...9e3d
β (Secret!) β Only you should know this
ββββββββββ¬ββββββββββ
β Elliptic Curve (secp256k1)
βΌ
ββββββββββββββββββββ
β PUBLIC KEY β e.g., 0x04a7b3c2...8f1e
β (Can share) β Derived from private key
ββββββββββ¬ββββββββββ
β Keccak-256 hash + trim
βΌ
ββββββββββββββββββββ
β WALLET ADDRESS β e.g., 0x742d35Cc6634C0532
β (Can share) β What you give to others
ββββββββββββββββββββ
Public Key vs Private Key
PUBLIC KEY PRIVATE KEY
ββββββββββββββββββββββββββ ββββββββββββββββββββββββββ
β Like your email β β Like your password β
β address β β β
β β β - NEVER share it β
β - Share freely β β - Write it on paper β
β - Others send to this β β - Store offline β
β - Cannot spend funds β β - Controls all funds β
ββββββββββββββββββββββββββ ββββββββββββββββββββββββββ
RULE: If you lose your private key, you lose your funds FOREVER
RULE: If someone gets your private key, they own your funds
Types of Wallets
Hot Wallets β Connected to the internet. Convenient but less secure.
Examples: MetaMask, Trust Wallet, Exodus
Cold Wallets β Offline storage. Maximum security.
Examples: Ledger Nano, Trezor, paper wallets
Security vs Convenience:
ββββββββββββββββββββββββββββββββββββββββββββΊ
MORE SECURE MORE CONVENIENT
ββββββββββ ββββββββββ ββββββββββ ββββββββββ
β Paper β βHardwareβ βDesktop β β Mobile β β Web
β Wallet β β Wallet β β Wallet β β Wallet β βWallet
ββββββββββ ββββββββββ ββββββββββ ββββββββββ ββββββββββ
Offline Offline Online Online Online
Seed Phrase (Recovery Phrase)
Most wallets generate a 12 or 24-word seed phrase when created. These words can reconstruct your private key. Write them down on paper and store them in a secure location. Never store them digitally or share them with anyone.
Example 12-word seed phrase:
ββββββββββββββββββββββββββββββββββββββββββββββββ
β 1.abandon 2.word 3.alice 4.bike β
β 5.chunk 6.dawn 7.eagle 8.forest β
β 9.habit 10.ice 11.jungle 12.kite β
ββββββββββββββββββββββββββββββββββββββββββββββββ
Anyone with these 12 words can access ALL your funds