Consensus Mechanism
Also known as: Consensus protocol, Consensus algorithm
Method by which the nodes of a distributed system agree on one shared state, such as which transactions a blockchain records and in what order.
A consensus mechanism is the set of rules that lets independent computers in a network agree on a single version of shared data. In a blockchain, it determines which block is added next and therefore which transactions are final. A useful mechanism must keep working when some nodes crash, messages are delayed or participants behave maliciously, a property called Byzantine fault tolerance. In open networks it must also resist Sybil attacks, in which one party creates many identities.
Bitcoin introduced proof of work, often called Nakamoto consensus, in which nodes follow the valid chain with the most accumulated work and finality is probabilistic: each additional block makes reversal less likely. Proof of stake selects validators according to the tokens they have locked up. Classical Byzantine fault tolerant protocols, such as Practical Byzantine Fault Tolerance from 1999, give fast, deterministic finality among a known set of participants and are common in permissioned ledgers. Conventional distributed databases use crash-tolerant algorithms such as Paxos and Raft.
Every mechanism involves tradeoffs between security, decentralization, speed, finality and energy use, and designers argue about which balance is right. Concentration of mining or staking power can undermine the security assumptions, making a 51% attack possible on smaller networks. Consensus guarantees agreement, not truth: nodes can agree on data that was wrong when it entered the system. Understanding the mechanism behind a ledger is therefore essential to judging what kinds of trust it can and cannot replace.
Key points
- Consensus mechanisms let independent nodes agree on one shared record.
- Proof of work and proof of stake are the most common mechanisms in public blockchains.
- Classical Byzantine fault tolerant protocols offer fast finality among known participants.
- Agreement among nodes does not guarantee that the recorded data is accurate.
Related entries
Proof of Work
Technique in which participants prove they spent computing effort by finding a value whose hash meets a difficulty target, used in many blockchains.
Proof of Stake
Blockchain consensus method in which validators lock up tokens as collateral to propose and confirm blocks, and can lose them for misbehavior.
Byzantine Fault Tolerance
Ability of a distributed system to keep reaching correct agreement even when some of its components fail arbitrarily or act maliciously.
Sybil Attack
Attack in which one adversary creates many fake identities to gain disproportionate influence in a network, vote or reputation system.
51% Attack
Attack in which a party controlling most of a blockchain's mining or staking power rewrites recent history, enabling double-spending or censorship.
Distributed Ledger
Record of transactions replicated and synchronized across many computers, so that no single party holds the master copy or can quietly alter it.
Blockchain
Append-only ledger made of blocks of records linked by cryptographic hashes and replicated across a network that agrees on updates by consensus.
Featured in guides
Referenced by
Other entries that discuss or point to Consensus Mechanism.