Roadmap › Blockchain & Web3 Fundamentals › Module: Blockchain Fundamentals
Lessons in this course (15)

3. Consensus mechanisms

Basic★ Must knowLesson 3 of 15
MechanismHow blocks are producedExamplesTrade-offs
Proof of WorkMiners compete to solve a hash puzzle; most cumulative work winsBitcoin, LitecoinVery secure and simple; high energy use; slow
Proof of StakeValidators lock stake; chosen to propose/attest; misbehaviour is slashedEthereum (since 2022), Cardano, Solana (PoS + Proof of History)Energy-efficient, faster finality; complexity, stake concentration
Delegated PoSToken holders vote for a few block producersEOS, TRONFast; more centralised
PBFT / BFT variantsKnown validators vote in roundsHyperledger Fabric (ordering), Tendermint/CometBFT (Cosmos)Instant finality; limited validator count
Proof of AuthorityApproved identities sign blocksPrivate networks, some testnetsFast; centralised trust

Ethereum PoS numbers: validators stake 32 ETH (Pectra raised the max effective balance to 2,048 ETH); a slot is 12 seconds, an epoch is 32 slots (6.4 minutes); finality after ~2 epochs.

51% attack — controlling the majority of hash power (PoW) or stake (PoS) allows reorganising recent blocks/double spending (not stealing arbitrary funds). Double spending is prevented by consensus on transaction order.

Blockchain trilemma (Vitalik Buterin): hard to maximise decentralisation, security and scalability at the same time — hence layer-2 solutions.