consensus mechanism
A consensus mechanism is the set of rules a blockchain uses to let thousands of strangers, with no boss and no central server, agree on one shared version of the truth — namely, which transactions happened and in what order. The hard part is that these participants do not trust each other and some may be lying or broken, yet they must all end up with the same ledger. The consensus mechanism is the agreed procedure that makes that possible.
Imagine a crowded room where everyone keeps their own copy of a shared notebook, and there is no referee. To stay in sync, the crowd needs a fair, public way to pick whose new page everyone copies next, plus a way to make cheating expensive or pointless. A consensus mechanism does exactly this: it decides who gets to propose the next block, how the rest check that the block follows the rules, and how disagreements are resolved so the whole network converges on one chain.
Different blockchains choose different mechanisms with different trade-offs. Proof of work makes proposing a block require real computation, so rewriting history would cost a fortune in energy. Proof of stake instead requires participants to lock up funds they would lose for misbehaving. Either way, the goal is the same: keep honest participants in agreement without anyone being in charge, which is what lets a blockchain run as a leaderless, tamper-resistant system.
Consensus is about agreeing on order and validity, not about deciding whether a transaction is morally good — the rules are mechanical.