๐ Custody & Security: Your Keys vs Their Vault
Learn about self-custody risk vs counterparty risk
Your Progress
0 / 5 completed๐ Who Controls Your Funds?
The custody model is the most critical difference between DEXs and CEXs. It determines who holds your private keysโand therefore, who truly owns your crypto.
๐ฎ Interactive: Custody Model Explorer
Understand how each model handles your funds:
๐
DEX (Self-Custody)
You control your private keys at all times
User Flow
๐
Create Wallet
Generate wallet (MetaMask, Ledger)
๐
Secure Seed Phrase
Write down 12-24 word recovery phrase
๐
Connect to DEX
Approve connection, funds stay in wallet
โ
Trade Directly
Sign transactions, settle on-chain
Security Responsibility
You are responsible for securing your keys
โ ๏ธ Risks
- โข Lost seed phrase = lost funds forever
- โข Phishing attacks
- โข Malicious contracts
- โข No customer support
๐ก๏ธ Protections
- โข Hardware wallets
- โข Multisig
- โข Contract audits
- โข Test transactions
๐ฎ Interactive: Security Crisis Scenarios
Explore real-world security failures and their consequences:
๐จ
Exchange Hack (CEX Risk)
Hackers exploit exchange security vulnerabilities and drain hot wallets
Real Example: Mt. Gox (2014)
Timeline of Events
1
Discovery
Exchange detects unauthorized withdrawals
Pause withdrawals
2
Investigation
Extent of breach determined
850,000 BTC stolen (~$450M)
3
Aftermath
Exchange declares bankruptcy
Users wait years for recovery
4
Recovery
Partial recovery through creditor process
~20% returned after 10 years
Key Lesson
Custodial risk: When exchange holds keys, hacks affect all users
๐ก๏ธ How to Protect Yourself
Only keep trading amounts on CEXs. Store bulk in self-custody.
The Famous Saying
๐
"Not your keys, not your coins"
โ Bitcoin Community Maxim
This phrase captures the fundamental security trade-off in crypto. When you deposit funds on a CEX, you're trusting them to:
- โข Secure the private keys properly
- โข Not misuse your funds (FTX-style)
- โข Process withdrawals when requested
- โข Maintain solvency and avoid bankruptcy
DEXs eliminate this trust requirement by letting you trade directly from your wallet. But this comes with its own responsibilityโyou must secure your own keys.
๐ก
Best Practices for Both Models
DEX (Self-Custody)
- โข Use hardware wallets (Ledger, Trezor)
- โข Store seed phrase offline, multiple locations
- โข Test with small amounts first
- โข Revoke unused token approvals
- โข Verify contract addresses
- โข Use separate wallets for DeFi vs holdings
CEX (Custodial)
- โข Enable 2FA (authenticator, not SMS)
- โข Whitelist withdrawal addresses
- โข Only keep trading amounts on exchange
- โข Verify proof of reserves if available
- โข Diversify across multiple exchanges
- โข Withdraw to self-custody regularly