ArEn

Lesson 3 of 135 min read

Blockchain technology · Beginner

Proof of work and proof of stake: how a network agrees

A blockchain has no head office. Thousands of computers keep the same record, and none of them is in charge. So who decides which payments go into the next block? The answer is a set of rules every computer follows, called a consensus mechanism. The two you will meet most are proof of work and proof of stake.

The problem they solve

If anyone could add blocks for free, a cheat could write two versions of history: one where they paid you, and one where they kept the money. Consensus makes adding a block costly and makes cheating cost more than it could ever earn. The honest version of the record wins because it is the expensive one to fake.

Proof of work: the race

In proof of work, computers called miners compete to solve a puzzle that has no shortcut, only guessing. The first to find the answer adds the next block and is paid in new coins and fees. Bitcoin works this way: a new block arrives about every ten minutes.

  • The cost is real electricity and machines, which is what makes the record hard to rewrite.
  • The downside is that same energy use, and the gear has grown so specialised that home computers no longer compete.

Proof of stake: the deposit

In proof of stake there is no race. People called validators lock up some of the network's own coins as a deposit, the stake. The network picks validators in turn to propose and check blocks. Honest work earns a reward; cheating or going offline can cost part of the deposit. Ethereum switched to this method in 2022.

  • It uses a tiny fraction of the energy of proof of work.
  • The trade off: those who hold the most coins can stake the most, so watch how concentrated the stake becomes.

Example

Two ways to secure the same idea, side by side.

Proof of workProof of stake
Who adds blocksMinersValidators
What they put at riskElectricity and machinesA deposit of coins
Known exampleBitcoinEthereum
Energy useHighVery low

A summary to compare the two. Each network has its own details.

What it means for you

You do not need to mine or stake to use crypto. But the method tells you how a network stays honest, and it shapes what you pay: fees, waiting time, and, if you stake through an exchange, the risks of handing your coins to someone else.

In short

  • Consensus is how a network with no boss agrees on one record.
  • Proof of work: miners race, and the cost is energy. Bitcoin uses it.
  • Proof of stake: validators lock coins as a deposit, and cheating costs them. Ethereum uses it.

Quick quiz

  1. What is a consensus mechanism?

  2. In proof of stake, what does a cheating validator risk?

  3. Which network uses proof of work?