Bitcoin Mining Labby Coinovo

Mining Lab · Coinovo Academy · Proof of stake and staking

Proof of stake and staking

Collateral instead of electricity

Building 12 min 7 cards 18 questions

Objectives

Collateral instead of electricity

In proof of work, electricity spent secures the network. In proof of stake, participants deposit their own coins as collateral, the stake. Whoever works honestly earns a reward. Whoever cheats loses part of their collateral. It resembles a rental deposit: it is locked away, and whoever causes damage pays for it out of the deposit.

In proof of work an attack costs electricity, in proof of stake your own collateral.

What a validator does

A validator is a piece of software backed by deposited collateral. On Ethereum there is a place for a block every twelve seconds, called a slot. A randomly selected validator proposes the block, others check it and vote. For this a validator has to be online all the time. Running your own validator requires at least 32 ETH.

Propose, check, vote: that is the whole job.

Full explanation

Propose, vote, finalise

On Ethereum time is divided into slots of twelve seconds. 32 slots form an epoch, which is 6.4 minutes. In each slot a randomly chosen validator may propose a block. The more collateral someone has deposited, the more often they are chosen on average, much as a miner with more computing power finds blocks more often.

In every epoch each active validator casts one vote, an attestation: it confirms which block it considers correct. Once validators holding at least two thirds of all collateral have agreed, a block counts as final after about two epochs. Rewriting it afterwards would mean destroying at least one third of all collateral.

That is a difference from Bitcoin. There a block becomes safer with every further block on top of it, but never final in the strict sense. On Ethereum there is a clear point after which a change would only be possible at an enormous and provable cost.

Where the reward comes from

Validators earn from three sources. First, newly issued ETH for their votes and proposals. Second, the tips users attach to their transactions. Third, extra income from the order in which transactions enter a block. The first source is fairly steady, the other two swing strongly with usage.

How high the return turns out also depends on how much collateral is staked in total: the more is staked, the smaller the share per validator. That is why no percentage is given here. Any figure would soon be wrong, and every calculation in this module uses explicitly made-up values.

Two things belong in every honest calculation. Newly issued coins increase the total supply; whoever does not stake owns a smaller share afterwards. Part of the return is therefore compensation, not profit. And the return is paid in ETH: if the price falls by more than the return makes up, you still have a loss in euros.

Penalties: small and large

A validator that is offline misses votes and receives small deductions, roughly the size of the missed reward. Only provable cheating is punished hard: signing two different blocks for the same slot or voting in contradictory ways. This is called slashing. Part of the collateral is destroyed and the validator is removed. The most common cause is not intent but a setup mistake, such as the same key running on two machines at once.

Being offline costs little, signing twice costs a lot.

Lock-up: money that does not come back at once

Staked collateral is tied up. On Ethereum withdrawals have been possible since April 2023, but exiting goes through a queue whose length depends on how many validators want to leave at the same time. Other networks have fixed unbonding periods of days to weeks. So anyone who wants to sell during a price crash cannot do so right away with directly staked coins.

Return against availability: staking means giving up instant access.

Staking without your own validator

Anyone with less than 32 ETH, or who does not want to run a machine around the clock, can stake through a provider: a pool or a platform. The provider keeps a share of the reward as a fee. With custodial providers the keys sit with the provider, not with you. If it goes bust or freezes accounts, that is your risk. And if its validator is slashed, your collateral can be hit too.

Convenience costs a fee and a measure of control.

Liquid staking

With liquid staking you receive a receipt token for your staked ETH. It represents the collateral plus rewards and can be traded or used elsewhere while the ETH stays staked. That solves the lock-up problem, but only on the surface: the receipt token can trade on the market below the value of the collateral. On top comes the risk of the smart contract that manages it all.

Full explanation

How a receipt token works

You deposit ETH with a liquid staking provider. It stakes the ETH through its validators and gives you a token in return. There are two designs. In one, the number of your tokens grows with the rewards. In the other, the number stays the same, but each token can later be exchanged for more ETH than at the start.

An example with made-up values: you deposit 10 ETH and receive 10 receipt tokens. At 3 percent return per year and after the fee, they stand for a little less than 10.3 ETH after one year. Which design is used does not change the return, only how it looks in your wallet.

There are two ways back. Either through the protocol: you hand the tokens back and wait until the exit has passed through the queue. Or immediately by selling on the market, but then at whatever price others are willing to pay at that moment.

Where the risks are

The first risk is the discount. If many want to leave at once and the exit through the protocol takes time, those in a hurry sell on the market and the receipt token drops below the value of the collateral. In 2022, when withdrawals were not yet possible at all, there were phases with a clear discount. Anyone forced to sell then lost money.

The second risk is the code. The contract that manages the deposits can contain bugs. Then there are the provider's validators: if they are slashed, all holders share the loss. If the receipt token is used again as collateral for a loan, the risks stack up, and a discount can trigger a chain of forced sales.

The third risk concerns the whole network. If a large part of all collateral sits with a few providers, they approach the thresholds of one third and two thirds on which the network's security depends. That is not a problem for any single user, but it is a reason why concentration is watched closely in proof of stake.

Proof of work and proof of stake compared

In proof of work an attacker needs an outside resource: machines and electricity. In proof of stake they need an inside one: a very large amount of the network's own coins. Proof of stake uses only a fraction of the energy. Critics object that those who have a lot get more; but the same is true of computing power in proof of work. Both methods tend towards concentration.

Neither is secure for free: one uses electricity, the other ties up capital.

Glossary

Validator
Participant with deposited collateral who proposes and confirms blocks.
Stake
The deposited collateral.
Slashing
Penalty for provable cheating: partial loss of collateral and removal.
Finality
State after which a block could only be changed at an enormous cost.
Epoch
On Ethereum 32 slots of twelve seconds each, so 6.4 minutes.
Liquid staking
Staking in exchange for a tradable receipt token.

Further reading

This module comes with 18 explained questions. They live in the app, along with your progress and the credit for finishing.
The Coinovo appA reason to come back every dayTasks, shifts and the daily hunt, plus an account that shows what has added up.Daily tasksYour own accountCosts nothingStart now

More modules

What Bitcoin isMoney without a middlemanHow mining worksGuessing until it fitsHashrateHow much guessing goes onThe difficultyWhy the rhythm holdsThe halvingThe reward shrinksWallets and keysWhat you never hand overFeesYou pay for spaceMining poolsTogether instead of aloneSpotting fraudThe same tricks every timeTokenomics, taken apartBitcoin as the worked example, projects under testEthereum and smart contractsA shared computer with a fee meterStablecoinsStable as long as the backing holdsDeFi: financial services made of codeSwap, borrow, lend without a bankThe Lightning NetworkBitcoin instantly, with conditionsSpotting and stopping scamsCheck first, then signAI and cryptoA tool, not an oracleInvesting with a planRules instead of gut feelingRunning mining as a businessWhat a machine really costsSelf-custody in practiceFrom the first key to inheritanceTax and bookkeepingWhat the tax office wants to seeHow the network really worksNodes, mempool, forksRisk and position sizeHow not to lose everything