Learn › Blockchain & Access Control › Module 3 ยท Consensus

PoW difficulty, energy metrics and Ethereum proof of stake

Six dimensions for judging consensus, target, difficulty, hash rate and retargeting, why kWh per transaction misleads, the Merge, validators, 12-second slots, 32-slot epochs, Casper FFG finality, LMD-GHOST and slashing.

Evaluating a consensus design

DimensionQuestion
SecurityWhat adversary share is tolerated (< 50% hash, < 1/3 stake), and what can it do?
LivenessDo confirmations continue through delays, partitions and crashes?
DecentralisationWho may take part; how concentrated is power?
PerformanceThroughput, latency, finality
CostHardware, electricity, capital, operations
GovernanceWho changes parameters and software, and resolves disputes?

Difficulty, target and hash rate

Condition: H(header) < target. A smaller target means fewer valid hashes and higher difficulty. Difficulty is a PoW concept; PoS has none.

Block discovery is a Poisson process: the 10-minute Bitcoin interval is an average, not a timer. When hash rate rises, blocks come faster and the next retarget lowers the target; when it falls, the target rises.

Worked example

Target interval 10 min at 100 TH/s. Hash rate doubles to 200 TH/s, so blocks arrive about every 5 min until the retarget (every 2,016 blocks in Bitcoin), which halves the target (doubles difficulty) and restores 10 min.

High difficulty alone is not security: pool concentration, ASIC supply and network propagation also govern resistance to 51% and selfish-mining attacks.

Energy and misleading metrics

Energy use is driven by miner participation, ASIC efficiency (J/TH), reward and fee revenue, and electricity prices, plus cooling and e-waste. Energy (TWh) and carbon intensity (gCO2/kWh) are separate: the same megawatts on hydro and on coal differ greatly.

“kWh per transaction” misleads: it is an average, not a marginal cost — miners hash headers whether a block holds 1 or 3,000 transactions — and batching or layer-2 channels settle many payments in one on-chain transaction.

PoWPoS
SelectionHashing raceStake weight and pseudo-random duty
EnergyContinuous race, specialised hardwareOrdinary servers
Security anchorCumulative work, hash distributionCapital at risk, slashing

The Merge (15 September 2022)

Ethereum’s execution layer joined the PoS Beacon Chain. Each node now runs an execution client (Geth, Nethermind: EVM, state, mempool) and a consensus client (Prysm, Lighthouse: proposals, attestations, fork choice, finality). Consensus energy fell by more than 99.9% with full history preserved.

Validators, slots and epochs

  • Validator: deposits 32 ETH; duties are block proposal and attestation.
  • Slot: 12 s; one pseudo-randomly chosen proposer (the slot stays empty if it is offline).
  • Attestations: committee votes on the head and checkpoints; each validator attests once per epoch.
  • Epoch: 32 slots = 6.4 min.
  • Checkpoint: ≥ 2/3 of stake attesting makes it justified; when the next checkpoint is justified on top, the earlier one is finalized (about 2 epochs, ~13 min).

LMD-GHOST picks the head by latest attestation weight; Casper FFG finalizes checkpoints — reverting one requires at least 1/3 of stake to be slashed. Confirmation (in a block) < fork-choice head < finality: progressively stronger guarantees.

Penalties, slashing and risks

Inactivity penaltySlashing
TriggerOffline, missed dutiesProvable equivocation: two blocks for one slot, double or surround votes
EffectMissed rewards, small leakStake partly burned; forced exit

Risks: stolen validator keys; correlated bugs if one client exceeds 2/3 of validators (hence client diversity); stake and cloud concentration; and smart-contract bugs, which consensus does not protect against. Operators running the same key on two machines as “backup” have been slashed for double signing.