What is a Consensus Mechanism?
A Consensus Mechanism is a set of rules that allows a decentralized network of computers to agree on the current state of the blockchain without a central authority.
In a centralized system (like a bank), one server decides which transactions are valid. In a decentralized blockchain, thousands of nodes must agree. A consensus mechanism solves this problem.
It ensures that:
1. All nodes have the same version of the ledger.
2. Attackers cannot rewrite history (security).
3. The network continues to operate even if some nodes fail (fault tolerance).
Main types:
- Proof of Work (PoW): Used by Bitcoin. Requires energy-intensive computation (mining).
- Proof of Stake (PoS): Used by Ethereum. Validators stake their coins to secure the network (energy-efficient).
🧒 Explain Like I'm 5
Imagine a group of friends trying to decide where to eat dinner. They need a way to agree so everyone goes to the same place. That 'way to agree' is the consensus mechanism.
❓ Frequently Asked Questions
📚 Sources
Bybit
Join Bybit and receive up to $6,135 in Bonuses. Trade crypto with low fees.