How open chains agree, and when a transfer is final

Nobody holds a master book, so something else must stop a liar writing the next page. How it does that decides when a transfer can be relied on.

  • Lesson 9 of 12
  • 8 min

The scene

Jassim brings Fatima two sentences from the platform's technical note. The first says the network "reaches agreement by a secure method". The second says a transfer should not be relied on until "a few further have been added". Khalid asks why anyone waits if the record is agreed, and why strangers would be honest at all. Noora will not pay for a plot on a maybe. Fatima says the two sentences are one subject, with two main answers.

The idea

Why agreement has to cost something

On a , the holders are strangers, and anyone can propose a false page. So the rule must make cheating expensive. There are two main ways.

Two ways to reach agreement A comparison between proof of work and proof of stake consensus models. Proof of work relies on computational puzzles where cheating wastes expensive electricity. Proof of stake relies on locked security deposits where cheating causes the deposit to be destroyed. A bottom note explains that both models make cheating unprofitable by imposing real economic losses. Two ways to reach agreement Proof of work Continuous computing Miners compete Solve a puzzle Real power cost Energy spent Fraud is rejected Spent work is wasted Proof of stake Locked deposit Validators stake Picked at random Capital at risk Held as guarantee Fraud is punished Locked stake is destroyed Both make cheating costly: wasted electricity, or a lost stake.

Spending work

In , computers compete to add the next block by solving a puzzle that takes very many guesses, and every guess costs electricity. The Bitcoin paper describes the chain's seals as -based proof of work: changing an old record means redoing the work for it and everything after it. The longest chain is taken as the true order of events, and the record stays secure while honest computers hold more computing power than any attacker.

Hiding a change means rewriting every later . Work makes each rewrite expensive rather than merely tedious, like a registry that accepts a page only with a stamp costing a day's labour: forging an old page costs a day for every page since. The comparison stops where the labour is spent whether or not the page is honest.

Putting up a stake

In , the checkers lock up their own ether, Ethereum's coin, as a deposit, and dishonest behaviour can destroy some or all of it. Ethereum switched from work to stake on 15 September 2022, keeping its history. A performance bond is the nearest office comparison. It stops where a bank holds the bond, while here the rule itself holds the deposit.

The energy question

Work spends electricity by design, because the spending is the cost of cheating. Ethereum's own site says its energy use fell sharply when it stopped mining. That is the project's statement about itself, not an outside measurement. What is durably true is the mechanism: one method pays in electricity, the other in capital at risk.

When a transfer is final

is the point from which a transfer can no longer be undone in practice. On a chain agreed by work, the longest chain wins, so a recent block can still be replaced if a longer chain appears. Hence the advice to wait for a few more blocks. The Bank for International Settlements described Bitcoin's design in 2017 as having only probabilistic finality: certainty grows with each block. Ethereum's stake design adds an explicit point. Once votes representing at least two-thirds of the staked ether back a marked block, the marked block before it can become final, and undoing that block would destroy a large part of the stake.

When a chain splits

If holders disagree and never settle it, ethereum.org says, the group splits. A is that event: two chains with one shared history and different pages after the split point. It happened in July 2016. After an attack that was draining ether from a program called The DAO, Ethereum's made a change that moved about 12 million ether into a recovery contract. The Ethereum Foundation's blog said roughly 85 percent of miners were on the changed chain. Those who wanted the chain without the change could still run the with an option, and an unchanged chain went on, later called Ethereum Classic. For a deal, a split means "the record" stops being one thing: a transfer valid on one chain may not exist on the other.

Where this fits

Agreement is neither free nor instant: a platform has to say how it agrees and when a transfer counts as final. What agreement cannot do is tell the chain about the world outside it, which is the next lesson.

References and going further

Check yourself

The platform's contract is set to pay the seller as soon as the transfer of token 14 appears in the newest block. Jassim thinks that is too early. What is his best point?

Use the arrow keys to read the options, then press Space to answer.

Type a lesson, an idea or a job. English words work in Arabic too.