Foundations · Blockchain

Proof of Stake

Proof of stake secures a blockchain with locked capital: validators deposit the network's coin as a stake, are chosen to propose and vote on blocks, and can lose that stake for misbehaving.

  • Intermediate
  • 5 min read
  • Updated

Why it matters

Proof of stake is the security model of Ethereum and of most blockchains launched in recent years. It replaces the electricity of mining with money at risk. It is also the mechanism behind “staking”, a term that appears on almost every exchange and wallet. Understanding the mechanism makes clear what a staker is exposed to and where the rewards come from.

How it works

Proof of Work vs Proof of Stake

PROOF OF WORK

Miners spend energy to earn the right to add a block.

  • Security comes from computing power
  • Attack cost: hardware and electricity
  • Used by Bitcoin

PROOF OF STAKE

Validators lock up coins to earn the right to add a block.

  • Security comes from capital at stake
  • Attack cost: coins that can be slashed
  • Used by Ethereum since 2022
Both are ways for strangers to agree on one transaction history without a central authority.

In proof of stake (PoS), the right to add blocks comes from locking up the network’s native coin. Participants who do so are validators, and the locked amount is their stake.

The protocol then runs a repeating cycle:

  1. Selection. For each block, one validator is chosen by a pseudo-random process to propose it. On most designs the chance of selection is proportional to stake.
  2. Attestation. Other validators check the proposed block and sign a vote, called an attestation, saying it is valid.
  3. Finality. When validators holding a large enough share of the total stake have voted, typically two thirds, the block is treated as final.
  4. Rewards and penalties. Validators that do their duties correctly are paid in newly issued coins and fees. Those that do not are penalised.
The life of a validator
  1. DepositLock the required stake in the protocol.
  2. ActivateWait in a queue, then begin duties.
  3. Propose and attestBuild blocks when chosen. Vote on others' blocks.
  4. Rewards or penaltiesPaid for correct work. Docked for absence or cheating.
  5. ExitLeave through a queue. Withdrawal takes time.
Stake is locked on the way in and released slowly on the way out, so that penalties can still be applied.

In plain words

Picture a committee where every member has put down a large deposit. Members take turns writing the minutes, and the rest sign off each page. A member who signs honestly earns a small fee. A member caught signing two contradictory versions loses part of the deposit and is thrown off the committee.

Rewards, penalties and slashing

A stake of 100 after one hypothetical year, by behaviour
Online and honest104.0

Rewards of 4.

Often offline102.5

Rewards of 3, penalties of 0.5.

Signed two conflicting blocks95.0

Slashed by 5 and removed from the validator set.

Illustrative figures only. Real reward rates and penalties are set by each protocol and change with conditions.

Proof of stake relies on penalties as much as on rewards.

Behaviour Typical consequence
Proposing and voting correctly Rewards, proportional to stake
Being offline and missing duties Small penalties, roughly offsetting the rewards missed
Provable dishonesty, such as signing two different blocks for the same position Slashing: part of the stake is destroyed and the validator is ejected

Slashing is what gives proof of stake its teeth. In proof of work, a miner who attacks loses the electricity spent. In proof of stake, an attacker’s capital is inside the system, where the protocol can destroy it.

On Ethereum, running a validator requires a minimum stake of 32 ETH, blocks are scheduled every 12 seconds, and finality normally takes about 15 minutes (it needs two epochs of 32 slots, each slot 12 seconds, so never less than 768 seconds; a transaction included part-way through an epoch waits longer). Other networks use different figures. Ethereum’s history with both systems is outlined in Ethereum: an overview.

Why this secures the chain

Stake thresholds on a hypothetical network with 30M coins staked
Total staked30M
Needed to finalise a block (two thirds)20M
Enough to stall finality (over one third)10M

An attacker at this level cannot finalise anything, but can stop others.

Voting-based proof of stake counts stake, not validators or people.

To finalise a false history, an attacker would need validators holding two thirds of the stake to sign it. To finalise two conflicting histories, at least one third of the stake would have to sign both, which is provable and slashable. The cost of an attack is therefore measured in coins that the attacker must buy, lock and expect to lose.

As with any consensus mechanism, this holds only while enough stake is in honest hands.

Going deeper

Delegation and pools. Not everyone can or wants to run a validator. Many networks let holders delegate coins to an operator, and exchanges and protocols offer pooled staking. The practical side is in staking. Delegators usually share in the operator’s penalties as well as its rewards, and pooled staking adds reliance on the operator or on a smart contract.

Lock-ups. Stake cannot be withdrawn instantly. Exit queues and waiting periods exist so that misbehaviour can still be punished, and the staker remains exposed to the coin’s market price throughout.

Concentration. Rewards are proportional to stake, and large operators enjoy economies of scale. A few exchanges or pooled services can come to control a large share of the validators, which weakens the independence the system depends on.

Energy. Validators run on ordinary computers, so electricity use is a small fraction of that of proof of work. Critics note that proof of stake has a shorter track record at scale and that its security rests on the value of the coin itself. Supporters point to explicit finality and to penalties that can be targeted at attackers. A side-by-side view is in proof of work vs proof of stake.

What an attack would needHypothetical illustration

Hypothetical numbers. A network has 30 million coins staked in total.

  • To finalise a block, votes from two thirds of the stake are required: 30M x 2/3 = 20M.
  • An actor controlling more than one third, that is more than 10M, could refuse to vote and stop anything being finalised. Fewer than 30M minus 10M = 20M would remain, which is short of the threshold.
  • To finalise two conflicting versions of history, 20M must sign each. With only 30M in existence, the two groups must overlap by at least 20M + 20M minus 30M = 10M.

Those 10M coins have signed contradictory blocks, which is provable. Under the rules they are slashed. The attack therefore costs the attacker a large part of a 10M stake. How large a part depends on the protocol’s slashing rules.

What it does NOT mean

  • Staking rewards are not interest on a deposit. They are payment for a service, funded by new issuance and fees, with penalties attached.
  • A quoted staking rate is not a return in money terms. It is paid in the coin, whose market price can fall by far more than the rate.
  • More stake does not mean more votes over the rules. It means more chances to propose and a larger share of attestations.
  • Slashing is not a common accident, and it is not impossible. It targets provable misbehaviour, which can also result from badly configured software.
  • Proof of stake is not automatically decentralised. It depends on how the stake is distributed.

Common misunderstandings

  1. Treating all “staking” products as the same thing. Running a validator, delegating, pooled staking and an exchange’s “earn” product carry different risks.
  2. Ignoring the exit time. Staked coins cannot be moved or sold at once.
  3. Forgetting who operates the validator. A delegator’s stake can be penalised for the operator’s faults.

Risks and limits

  • Stake can be reduced by penalties and slashing.
  • Lock-ups and exit queues delay access to staked coins.
  • Stake can concentrate in a few large operators or services.
  • Pooled and liquid staking add operator and smart-contract risk.
  • Finality stalls if too much stake is offline. See finality and throughput.

Key takeaway

Proof of stake ties block production to locked capital that the protocol can destroy. Validators are rewarded for honest work and slashed for provable cheating, so attacking the chain means putting a large stake up to be lost.

Sources and further reading