Consensus Mechanism
A consensus mechanism is the set of rules a blockchain's nodes use to agree on one shared version of the ledger, including which transactions are valid and in what order, without relying on a central authority.
In a blockchain, thousands of independent computers (nodes) each keep a copy of the ledger. The consensus mechanism decides who gets to propose the next block and how everyone else checks and accepts it. In Proof of Work, miners spend computing power racing to solve a cryptographic puzzle. In Proof of Stake, validators lock up coins as collateral and can lose part of them through slashing if they break the rules. Other designs include Delegated Proof of Stake, Proof of Authority and classic Byzantine Fault Tolerance protocols.
For anyone using crypto, the consensus mechanism is what makes a transaction trustworthy once it is confirmed. It stops the same coins from being spent twice. It also shapes how quickly a payment reaches finality, how much energy the network uses and how decentralized control of the chain really is.
Bitcoin uses Proof of Work, often called Nakamoto Consensus. Ethereum originally used Proof of Work as well but moved to Proof of Stake in an upgrade known as The Merge. Some components are not full consensus mechanisms on their own. Solana's Proof of History, for example, supplies a verifiable ordering of events that works alongside a Proof of Stake system.
A common misconception is that a consensus mechanism makes a network unbreakable. Security depends on how costly it is to gain control. An attacker with a large enough share of mining power or stake could censor transactions or rewrite recent history, a scenario often called a 51% attack.