Learn › Blockchain & Access Control › Module 3 ยท Consensus
Distributed consensus, fault models and consensus families
The consensus problem and its six properties, timing models, crash versus Byzantine faults, permissionless versus permissioned designs, Nakamoto PoW, PoS, DPoS, LPoS, PoET, Tangle and Proof of Burn.
The consensus problem
Distributed nodes must agree on one value or ordered history despite delays, no global clock, crashes, partitions and attackers. The goal is to prevent conflicting accepted states (forks, double spends), not merely to copy data. Not every ledger is a chain of blocks: IOTA’s Tangle is a DAG.
| Property | Meaning |
|---|---|
| Agreement | Honest nodes never decide conflicting values |
| Validity | A decided value satisfies the protocol rules |
| Integrity | A node decides at most once per instance |
| Safety | “Nothing bad happens” — no invalid or conflicting commits, even if progress stalls |
| Termination | Non-faulty nodes eventually decide, under the stated network model |
| Liveness | “Something good eventually happens” — new transactions keep confirming |
Timing models: synchronous (known delay bound), partially synchronous (bounded after an unknown stabilisation time), asynchronous (no bound).
Crash vs Byzantine faults
| Crash / omission | Byzantine | |
|---|---|---|
| Behaviour | Stops or drops messages; never lies | Arbitrary: lies, equivocates, colludes, reorders |
| Mitigation | Timeouts, retries, leader failover (Raft, Paxos) | Signatures, independent verification, thresholds (f faulty of 3f + 1; or < 50% hash/stake) |
Worked example
Four bank nodes. If N3 loses power, the others time out, exclude it and commit. If N3 is hacked and tells N1, N2 “pay Alice” but N4 “pay Hacker”, only Byzantine-tolerant rules stop the ledger from splitting.
Challenges and families
Challenges: latency and loss, simultaneous proposals, Sybil attacks in open membership, incentive manipulation and censorship, and trade-offs among security, throughput, decentralisation, latency, energy and governance.
Permissionless: anyone joins; Sybil resistance comes from a scarce resource (work or stake). Permissioned: vetted organisations; identity (PKI, MSPs), endorsement policies and consortium governance.
Nakamoto consensus and Proof of Work
- Assemble mempool transactions into a candidate block.
- Vary the nonce and hash the header.
- Win when H(header) < target.
- Peers verify every rule and extend the chain with the most cumulative work.
- Probabilistic finality: a block can be reorganised, but the risk falls exponentially with confirmations (Bitcoin: about 6, roughly an hour).
- A > 50% attacker can censor and rewrite recent history (double-spend their own coins) but cannot forge signatures or mint coins beyond the rules.
- Strengths: open, battle-tested, explicit cost to rewrite. Weaknesses: energy, ASICs, pool centralisation, slow confirmation.
PoS, DPoS and LPoS
| Mechanism | Risk | Example | |
|---|---|---|---|
| PoS | Validators lock stake; pseudo-random, stake-weighted proposal and attestation; rewards for uptime, slashing for provable equivocation | Stake concentration, hot-key compromise, client bugs | Ethereum, Cardano, Polkadot |
| DPoS | Holders vote in a small set of block producers who take turns | Cartels, voter apathy, exchange voting power | EOS (21), TRON (27) |
| LPoS | Small holders lease stake to a validator; coins never leave the wallet; revocable | Delegation concentration | Waves; Tezos-style delegation |
PoET, Tangle and Proof of Burn
- PoET (Intel, Hyperledger Sawtooth): each node gets a random wait time from a trusted execution environment (SGX); the first to finish proves it and publishes. Saves energy by shifting trust to the hardware vendor and attestation.
- Tangle (IOTA): no blocks or miners; each new transaction approves two earlier tips, forming a DAG. Parallel and feeless, but finality depends on tip selection and weight assumptions.
- Proof of Burn: send coins to an unspendable address; more burned, more minting right. No ongoing energy, but destroys capital and favours the wealthy (Slimcoin, Counterparty).
Summary table
| Mechanism | Selection resource | Energy | Main concern |
|---|---|---|---|
| PoW | Hash computation | High | Hash-power and pool concentration |
| PoS | Staked tokens | Low | Stake concentration; slashing |
| DPoS | Elected producers | Low | Collusion; apathy |
| LPoS | Leased stake | Low | Delegation concentration |
| PoET | TEE wait timer | Low | Trusted hardware |
| Tangle | DAG tip approval | Protocol-driven | Tip selection; finality |
| PoB | Burned coins | Low ongoing | Capital destruction |