The Consensus Problem
Asha has exactly 5 coins. At the same moment she signs two transactions: one paying all 5 to Ravi, another paying all 5 to Meera. Half the network hears about the Ravi payment first; the other half hears about the Meera one first. Each looks valid on its own. Which one counts? Without a shared answer, the same coins get spent twice. This is the double-spend problem.
The rule
Consensus is how strangers agree on one order, and one order stops double spends.
Once every node agrees which transaction came first, the second is simply invalid, because those coins are already gone. So the real job of a consensus protocol is to agree on the order of blocks, and with it the order of transactions.
Three things make that hard on an open network:
- No boss. There is no central server entitled to announce "Ravi's came first".
- Faulty and dishonest nodes. Some nodes crash, lag or lie. A node that may fail in any way at all, including deliberate lying, is called Byzantine, after a classic puzzle about generals who cannot trust all of their messengers.
- Identities are free. On a public network anyone can start a thousand nodes. If agreement were "one node, one vote", an attacker would simply run more nodes. This is a Sybil attack.
The answer to the last problem shapes every design: blockchains tie influence to something scarce and costly to fake.
| Protocol family | What earns you a say | Covered in |
|---|---|---|
| Proof of work | Computing power spent on hashing | Lesson 2 |
| Proof of stake | Coins locked up as collateral | Lesson 3 |
| BFT voting | A seat in a known set of validators | Lesson 4 |
This is the real meaning of decentralization versus trust. You no longer trust a particular institution. Instead you trust that the rules, the maths and the cost of cheating keep enough participants honest.