Mod-III ( Distributed consensus )
Mod-III ( Distributed consensus )
Distributed consensus is the process by which nodes in a decentralized network agree on the validity of
transac ons and the current state of the blockchain ledger. Achieving consensus is cri cal for maintaining
the integrity, security, and trust in a blockchain system, especially since there is no central authority.
Consensus Mechanisms
Consensus mechanisms ensure that all nodes in the network agree on a single version of the blockchain,
despite failures or malicious actors. Various consensus mechanisms are designed for specific use cases.
Nakamoto Consensus
Named a er Bitcoin's pseudonymous creator, Satoshi Nakamoto.
Used in Bitcoin, it combines Proof of Work (PoW) with a longest-chain rule:
Consensus Mechanisms
1. Proof of Work (PoW):
Concept: Miners solve cryptographic puzzles to validate transac ons and create new blocks.
Key Features:
o Computa onally intensive.
o Ensures security through economic cost (electricity, hardware).
Challenges:
o High energy consump on.
o Vulnerable to 51% a acks (if a single en ty controls over 50% of the network’s compu ng
power).
2. Proof of Stake (PoS):
Concept: Validators are chosen to create blocks based on the amount of cryptocurrency they
"stake."
Key Features:
o Energy-efficient compared to PoW.
o Security is based on the economic stake in the network.
Challenges:
Concept: Par cipants burn cryptocurrency (send it to an unspendable address) to gain the right to
validate transac ons.
Key Features:
o Combines elements of PoW and PoS.
o Demonstrates commitment to the network.
Challenges:
o Burned assets are permanently removed, which might discourage par cipa on.
4. Difficulty Level:
Adjusted dynamically in PoW systems to maintain consistent block crea on mes.
Increases as network hash rate grows, ensuring fair compe on among miners.
Sybil A ack
A Sybil a ack occurs when a malicious actor creates mul ple fake iden es (nodes) to gain
dispropor onate influence over the network.
Mi ga on in Blockchain:
1. Proof-based Mechanisms:
o PoW: High computa onal cost makes Sybil a acks economically unfeasible.
o PoS: Requires staking assets, which is costly to fake.
2. Permissioned Models: Limit network access to verified par cipants.
Challenges:
o Par ally centralized.
o Requires trust in validators.