Free tech learning for everyone, from basics to pro

BlockchainEmerging Technologies and SecurityIntermediate

Blockchain consensus: proof of work versus proof of stake

In short: Consensus is how a blockchain network agrees on the next block when no one is in charge. Proof of work makes cheating cost computing power and energy; proof of stake makes it cost locked-up funds that can be destroyed. Permissioned chains often use faster voting-based methods among known members.

The problem consensus solves

In a distributed ledger thousands of nodes may receive transactions in different orders, and some nodes may be faulty or dishonest. Without a referee, how do they agree on one history? This is a version of the Byzantine Generals Problem: reaching agreement when some participants may lie. A consensus mechanism is the set of rules that solves it well enough for the system to be trusted. In open, public blockchains anyone can join, so the rules must also stop one person from creating thousands of fake identities (a Sybil attack). Both proof of work and proof of stake do this by tying influence to a scarce resource.

Proof of work

In proof of work (PoW), nodes called miners compete to find a value (the nonce) that makes the block header's hash fall below a target. The only way is trial and error, so it takes a lot of computation. The first miner to succeed broadcasts the block, others check it instantly, and the winner earns a reward. Bitcoin uses PoW with SHA-256 and adjusts the difficulty so blocks arrive at a steady rate.

When two valid blocks appear at once, nodes follow the chain with the most accumulated work. To rewrite history, an attacker would need more computing power than the honest miners combined, which is the basis of the 51% attack discussed in blockchain security. The big drawback is energy consumption and the need for specialised hardware.

Proof of stake

Proof of work versus proof of stakeProof of workMiners solve hash puzzleSecurity from computing powerHigh energy useAttack needs majority hash rateProof of stakeValidators lock up coinsSecurity from staked valueMuch lower energy useMisbehaviour is slashed
Figure 1. Both methods make cheating expensive, but they spend different resources to do it.

In proof of stake (PoS), validators lock up (stake) some of the chain's native currency. The protocol chooses validators to propose blocks, and others vote (attest) that the blocks are valid. If a validator breaks the rules, for example by signing two conflicting blocks, part of its stake can be destroyed. This penalty is called slashing. Ethereum switched from proof of work to proof of stake in 2022, an upgrade known as "the Merge", which cut its energy use dramatically.

AspectProof of workProof of stake
Scarce resourceComputing power and electricityLocked-up currency
Who adds blocksMinersValidators
Punishment for cheatingWasted energy and lost rewardsSlashing of stake
Energy useVery highLow
Main criticismEnvironmental cost, mining centralisationWealth concentration, more complex design
FinalityProbabilistic: safer with more confirmationsOften explicit finality after a checkpoint

Voting-based consensus and finality

Consensus familiesConsensusProof of workBitcoinProof of stakeEthereum todayBFT stylePBFT, Raft-likeProof of authorityknown signers
Figure 2. Public chains mostly use work or stake; permissioned chains often use voting-based methods.

Permissioned blockchains know who their members are, so they do not need an expensive Sybil defence. They often use Byzantine Fault Tolerant (BFT) algorithms such as Practical BFT (PBFT), where nodes exchange votes and a block is final once enough agree. Classic BFT tolerates fewer than one third of nodes being faulty. Some systems use crash-fault-tolerant ordering such as Raft, which assumes nodes may fail but not lie. Proof of authority lets a small set of approved signers create blocks. These are fast, but trust sits with a known group.

Finality means a transaction cannot be reversed. With PoW it is probabilistic: each extra block on top makes a reversal less likely, which is why services wait for several confirmations. Many PoS and BFT systems give clearer, faster finality.

Tip: in exams, link each method to its Sybil defence: PoW uses computing cost, PoS uses financial stake, permissioned chains use known identities.

The same ideas appear outside blockchains. Distributed databases use Raft and Paxos to keep replicas in agreement; see consensus in distributed systems.

Practice

What is slashing in proof of stake?
A penalty where part of a validator's locked stake is destroyed because it broke the rules, for example by signing conflicting blocks.
Why do services wait for several confirmations on a proof of work chain?
Finality is probabilistic; each additional block on top makes it much less likely that the transaction's block will be replaced by a competing chain.
Why can a permissioned chain use PBFT instead of proof of work?
Its members are known and authenticated, so it does not need an expensive defence against fake identities and can rely on voting among them.

Key takeaways

  • Consensus lets nodes agree on one history when some may be faulty or dishonest.
  • Proof of work ties influence to computing power; proof of stake ties it to locked funds.
  • Ethereum moved from proof of work to proof of stake in 2022.
  • Permissioned chains often use BFT voting or proof of authority among known members.
  • Finality is probabilistic in PoW and usually more explicit in PoS and BFT.
Tracks your learning on this device only. See your progress on the learning paths.

About the author

Mohamed Fayas

Founder of FM TecHub. CCNA certified, with a BTEC HND in Network Engineering, and BEng (Hons) in Computer Networking and Cloud Security. He writes practical, plain-English guides on networking, security and cloud.

More about the author

Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.

Stay up to date by email

New notes, tools and security news from FM TecHub, explained simply. Free.

We only use your email to send these updates. See our privacy policy.