Public Keys vs Private Keys
A clear technical guide to asymmetric cryptography: how elliptic curve math connects your private key, public key, and public address.
Demystify crypto wallets: how they manage cryptographic key pairs, the difference between hot and cold storage, and why wallets do not actually store coins.
One of the most persistent misconceptions among people learning about blockchain is the belief that a cryptocurrency wallet holds coins inside it the same way a leather physical wallet holds paper money.
In reality, no cryptocurrency ever leaves the blockchain.
Your Bitcoin, Ether, or tokens exist exclusively as ledger entries distributed across thousands of nodes worldwide. What your "wallet" actually holds is a pair of cryptographic keys that give you the mathematical authority to authorize transactions and move those funds.
In this guide, we demystify how cryptocurrency wallets work, the key differences between hot and cold wallets, and essential best practices for key management.
To understand how a wallet works, consider a bank of metallic postal boxes in an apartment lobby:
Physical Mailbox Analogy:
┌───────────────────────────────┐
│ Mailbox #42 │
│ [ Public Slot for Mail ] │ ◄── Anyone can drop letters in (Public Address)
│ │
│ [ Keyhole: Only Alice holds ] │ ◄── Only Alice can unlock and withdraw (Private Key)
└───────────────────────────────┘
A crypto wallet is essentially a digital keychain that generates, stores, and organizes these key pairs.
Cryptocurrency wallets are broadly categorized based on whether their private keys are exposed to the internet.
Hot wallets run on internet-connected devices such as laptops, smartphones, or web browser extensions.
Cold storage keeps your private keys completely isolated from the internet (air-gapped).
Another critical distinction is custody.
Custodial (Centralized Exchange):
[User] ──► Logs in with Email/Password ──► [Exchange Holds Private Keys]
("Not your keys, not your coins")
Non-Custodial (Self-Sovereign Wallet):
[User Holds Private Keys Directly] ──────► [Direct Interaction with Blockchain]
(Full sovereignty, full responsibility)
When you buy cryptocurrency on a centralized exchange (like Coinbase, Binance, or Kraken), the exchange holds the underlying private keys in its own corporate wallets. You only have an account balance in the exchange's private database.
If the exchange freezes your account, goes bankrupt, or is seized, you may lose access to your assets. This dynamic gave rise to the foundational crypto maxim: "Not your keys, not your coins."
With a self-custody wallet, you alone hold the cryptographic keys. No company, developer, or government can freeze your account or reverse a transaction. However, this sovereignty comes with total personal responsibility: there is no customer support hotline to reset your password if you lose your recovery phrase.
| Feature | Hot Wallet (Software) | Cold Wallet (Hardware) | Custodial Exchange |
|---|---|---|---|
| Internet Connected | Yes (Always or frequent) | No (Offline isolation) | Yes (Managed by company) |
| Key Ownership | You hold the private key | You hold the private key | Company holds the private key |
| Security Level | Medium (Malware risk) | High (Physically isolated) | Depends on exchange solvency |
| Setup Cost | 100% Free | $50 - $200 for hardware | Free to register |
| Primary Use | Daily dApp use & small txs | Long-term secure savings | Initial fiat purchase/trading |
BlockchainCeylon is an independent publication dedicated to making blockchain concepts accessible to learners, students, and engineers.
A clear technical guide to asymmetric cryptography: how elliptic curve math connects your private key, public key, and public address.
A clear architectural and philosophical comparison between Bitcoin and Ethereum: digital store of value versus the decentralized world computer.
Understand the mathematical and game-theoretic protocols that enable thousands of untrusted computers to agree on a single global state.