freecoding.school100% FREE · NO SIGNUP
Ledger LandISSUE #41 of 90

wallets · custodial vs non-custodial

BlockyVSDouble-Spend Dan
Blocky saysWallets are custodial (someone holds your keys) or non-custodial (you do).

A custodial wallet (an exchange like Coinbase) holds your private keys for you — convenient, recoverable, but you trust them and they can freeze/lose funds ("not your keys, not your coins"). A non-custodial wallet (MetaMask, hardware) means you alone hold the keys — full control and self-responsibility, no reset if you lose them. The choice is a trust-vs-control trade-off.

Power-ups you unlock

Double-Spend Dan attacks — common mistakes

Boss battleState the trade-off captured by "not your keys, not your coins".

Example code

<!doctype html><html><head><meta charset="utf-8"></head>
<body style="background:#06040d;color:#e6e0ff;font-family:monospace;padding:20px"><pre>custodial:     exchange holds keys (recoverable, trust them)
non-custodial: you hold keys (full control, no reset)</pre></body></html>
▶ Open the interactive comic issue
‹ Erc-4337 · Account AbstractionWallets · Hot Vs Cold ›