Sub topic 1
What a Wallet Really Holds: Keys, Addresses and Signatures
Prerequisites
Assume you know that a cryptocurrency network records transfers on a shared ledger. You should also know that a transaction moves value according to the network's rules. Public-key cryptography is helpful, but this chapter explains the relevant parts.
The wallet does not store coins
A wallet does not contain Bitcoin, Ether, or other coins as files. The blockchain contains the ledger entries that describe ownership or account balances. A wallet manages the information needed to control those balances.
A wallet normally performs three jobs:
- It creates or imports private keys.
- It derives public keys and addresses for receiving funds.
- It creates digital signatures that authorize transactions.
A private key is a secret number. The wallet uses it to produce a digital signature. The network checks the signature with the matching public key. The private key never needs to be sent in the transaction.
Keys, addresses and signatures
A public key is mathematically derived from a private key. An address is usually a shorter, encoded identifier derived from a public key or from a spending script. The exact format depends on the blockchain.
An address is intended to be shared. A private key must remain secret. Anyone who can use the private key, or a valid backup from which the key can be derived, may be able to authorize spending.
| Item | Main purpose | Should it be secret? |
|---|---|---|
| Private key | Authorizes spending | Yes |
| Public key | Supports signature verification | Usually no |
| Address | Identifies where funds can be sent | No |
| Digital signature | Proves authorization for a transaction | No, but it must be valid |
The network does not ask whether a person is the rightful owner in a legal sense. It checks whether the transaction satisfies the spending conditions recorded by the protocol. Possession of the required key is therefore the practical form of control.
A transaction walkthrough
Suppose Alice wants to pay Bob:
- Bob gives Alice an address.
- Alice's wallet creates a transaction that refers to Bob's address.
- The wallet selects Alice's spendable funds according to the blockchain's model.
- The wallet signs the transaction with the required private key.
- Nodes verify the signature and other rules.
- After confirmation, the ledger reflects the transfer.
The signature binds the transaction to its contents. If someone changes the amount or destination after signing, signature verification should fail. A signature does not prove that Alice is a real-world identity. It proves that the transaction was authorized by the required cryptographic key.
Why wallet labels can mislead
A custodial service may display a balance in an account while holding the signing keys itself. The service may combine many customers' funds and maintain internal records. A self-custody wallet gives the user control of the signing keys, although the wallet application may still be replaceable or recoverable from a backup.
This distinction matters more than the app's name or appearance. Ask who can create a valid signature when a transaction must be spent. That party controls the funds at the protocol level.
Exercise
Alice gives Bob her public address, but Bob claims he can now spend Alice's funds. What is wrong with Bob's claim?
Show answer
An address is for receiving funds and does not authorize spending. Bob would need the required private key or another authorized signing method.