Sub topic 1
Keys and wallets: what actually controls your funds
Prerequisites
This chapter assumes you know what a blockchain is, can use a wallet app, and can read a block explorer. You should also recognize hexadecimal (base-16) notation.
Keys and wallets
A private key is a secret number, usually 256 bits long. Whoever holds it can sign transactions for the matching account. The public key is derived from the private key using elliptic-curve math. The address is a shorter identifier derived from the public key by hashing. You can share an address freely. Never share the private key or seed phrase.
A wallet holds keys, not coins. Coins live on the blockchain and are recorded against addresses. If you lose the keys, you lose control of the funds, and no support desk can restore them.
Accounts and addresses
On Ethereum-style networks, an address is 20 bytes, shown as 40 hex characters with a 0x prefix. Send only to addresses you have verified. A mistyped address usually sends funds to an account nobody can access.
Account model vs UTXO model
Ethereum uses an account model. Each address has a balance that the network updates directly. Bitcoin uses a UTXO (unspent transaction output) model. Your balance is the sum of outputs that are still unspent and locked to your address. Spending consumes those outputs and creates new ones, and any leftover value returns to you as change.
| Aspect | Account model | UTXO model |
|---|---|---|
| Example network | Ethereum | Bitcoin |
| How balance is stored | One number per address | Set of unspent outputs |
| How a spend works | Subtract from the account balance | Consume outputs, create new ones |
Networks and chains
A network is a separate blockchain. EVM-compatible networks use a chain ID to identify each one. The same address format works on many networks, but a balance on one network does not appear on another. Before you send, check the network name, chain ID, and asset.
Native coins and tokens
The native coin pays fees on its network, such as ETH on Ethereum. A token is a balance recorded inside a smart contract, such as USDC. Sending a token means calling that contract, and you still need native coin to pay the fee. Verify the token's contract address, because anyone can create a token named "USDC."
Exercise
A friend sends you USDC on Ethereum, but your wallet shows nothing. You have ETH on Ethereum and USDC on Polygon. What should you check first, and why?
Show answer
Check which network the wallet is showing and which contract address the token uses. The USDC sent on Ethereum is recorded in an Ethereum contract, so it appears only when the wallet is set to Ethereum. Polygon shows only Polygon balances, even for the same address.