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.

PropertyMeaning
AgreementHonest nodes never decide conflicting values
ValidityA decided value satisfies the protocol rules
IntegrityA node decides at most once per instance
Safety“Nothing bad happens” — no invalid or conflicting commits, even if progress stalls
TerminationNon-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 / omissionByzantine
BehaviourStops or drops messages; never liesArbitrary: lies, equivocates, colludes, reorders
MitigationTimeouts, 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

  1. Assemble mempool transactions into a candidate block.
  2. Vary the nonce and hash the header.
  3. Win when H(header) < target.
  4. 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

MechanismRiskExample
PoSValidators lock stake; pseudo-random, stake-weighted proposal and attestation; rewards for uptime, slashing for provable equivocationStake concentration, hot-key compromise, client bugsEthereum, Cardano, Polkadot
DPoSHolders vote in a small set of block producers who take turnsCartels, voter apathy, exchange voting powerEOS (21), TRON (27)
LPoSSmall holders lease stake to a validator; coins never leave the wallet; revocableDelegation concentrationWaves; 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

MechanismSelection resourceEnergyMain concern
PoWHash computationHighHash-power and pool concentration
PoSStaked tokensLowStake concentration; slashing
DPoSElected producersLowCollusion; apathy
LPoSLeased stakeLowDelegation concentration
PoETTEE wait timerLowTrusted hardware
TangleDAG tip approvalProtocol-drivenTip selection; finality
PoBBurned coinsLow ongoingCapital destruction