Proof-of-Stake (PoS) Consensus Mechanism
Proof-of-Stake (PoS) is a consensus mechanism used to secure a blockchain network and ensure that only legitimate transactions are added to the chain
1. It serves as an alternative to the Proof-of-Work (PoW) mechanism
1.
In a PoS system, network security is maintained by
validators who lock, or "stake," their cryptocurrencies
1. This mechanism is often favored for its potential to be more energy-efficient and scalable compared to PoW
21.
Key Operational Properties of PoS
PoS systems rely on clearly defined thresholds to ensure stability and resilience against malicious behavior or faults
3. These thresholds are based on the percentage of staked tokens and define three fundamental properties:
The lower thresholds for Liveness and Finality (33.3%) represent the minimum failure points for network progress and transaction irreversibility, while Safety requires a higher threshold (66.6%) to sustain protection against malicious actions
3.
PoS in Practice: The Ethereum Merge
The most notable transition to PoS was the
Ethereum Merge, where the Ethereum blockchain shifted from a mining-based PoW system to a more energy-efficient, scalable PoS system
2. This transition was achieved by joining Ethereum's mainnet with its PoS-based system, known as the Beacon Chain
2.
Ethereum Transaction Flow
In Ethereum's PoS system, a transaction follows a specific lifecycle
4:
- User Submission: A user sends a transaction, which includes a tip (reward for validators) and a gas fee (payment for computational resources) 4.
- Node Mempools: The transaction is sent to mempools, where nodes collect the most profitable transactions, prioritizing those with higher tips and gas fees 4.
- Block Building: A Block Builder selects transactions from the mempool to construct a new block 4.
- Block Proposer: The Block Proposer broadcasts the new block to the network, where it is checked by light nodes (verifying the header) and full nodes (ensuring data availability) 4.
- Consensus Layer: If the block passes checks, consensus is formed to append the block to the chain 4.
Delegated Proof-of-Stake (DPoS)
Delegated Proof-of-Stake (DPoS) is a variation of the PoS consensus mechanism
5.
PoS and Network Decentralization
PoS models are often used to promote decentralization by rewarding stakers with minted tokens for participating in the network's governance, security, and maintenance
6. For example, Starknet is planning to transition its sequencer and prover operations to a PoS protocol to ensure that no single party is essential to the network's continued liveness
6.
StarkWare's token-minting proposal for Starknet, loosely based on Ethereum's monetary policy, aims to balance rewarding stakers and managing inflation expectations
6. The proposal includes two properties
6:
- The total minting rate increases as more tokens are staked 6.
- The staking reward, as a percentage of the staked amount, decreases as more tokens are staked 6.
PoS vs. PoW
While PoW was the first and is considered a battle-tested security model, PoS is viewed as potentially more efficient
78. However, PoS may introduce new and less obvious attack vectors
8. PoW's success paved the way for PoS research to be taken seriously
7. PoS systems often address security concerns by allowing for a dynamic set of validators, promoting token holder participation, and implementing steep penalties (slashing) for protocol violations
8.