You have never held money. You have only ever held somebody's promise to update a record. The question is who gets to hold the pen, and what it costs to take it from them.
Why digital money needs a list at all
You own one coin. It is a file on your computer. Pay Alice with it, then pay Bob with the same
coin. Watch your own balance while you do it.
You
1
Alice
0
Bob
0
One coin exists. Everything is fine.
Nothing checked anything, because there was nothing to check.
Sending a file does not remove it from you, so you now have one coin, Alice has one coin, and Bob has one coin.
Three people hold what only one of them should, and when Alice and Bob each go to spend it, whoever they pay has
no way of knowing which one is real.
So the coin becomes worthless. The failure is not that
somebody got cheated once. It is that nobody can safely accept this money again, which means it stops being money.
Cash never had this problem, because handing a note over takes it out of your pocket. Digital money has to solve
it with a list of who owns what, and the only question left is who keeps that list.
The fix that actually runs the world. One institution keeps the list
A bank holds the only ledger. Every payment goes through it and it checks your balance before
writing anything down. Try the same trick.
You
1
Alice
0
Bob
0
Solved, and solved well. The second payment never happened
because the list said there was nothing left to send. Every bank, every clearinghouse and DTCC itself is this box.
Almost all the money in the world runs exactly this way and mostly it works.
What you accepted in exchange
You did not just trust the keeper to be honest. You made its copy the only copy, so every way that
copy can go wrong is now a way your money can go wrong. Press each one.
Notice that only one of those was dishonest. The keeper does
not have to be corrupt for a single copy to be a single point of failure. It only has to be staffed by people,
connected to a network, and running software. That is the real price of the one keeper fix, and everything this
course says about supervision, audits and backups is the bill.
Nobody is in charge. So who writes the list?
Take the bank away and the problem comes back, because now anyone can add to the list and anyone
could write anything. The answer is to charge real money for the right to write, and to let everyone check the
receipt for free. Those are two different jobs.
Job 1, expensive
Mining. You are buying the right to write the next page.
Bundle up the waiting payments, then hunt for a number that makes the page's hash start with
zeros. There is no shortcut. You guess, millions of times, and you pay for the electricity. First one to find
it gets to write the page and gets paid for it.
Job 2, nearly free
Verifying. Everyone else checks you really did it.
They hash your page once and look at the front of it. If the zeros are there, you did the work.
They also read your payments to make sure nobody spent the same coin twice. Both checks are cheap, so every
computer on the network does them, independently, for every block.
A block is one page of the ledger. It holds a batch of payments, a pointer back to the
previous page, and the proof that somebody paid to write it. The pointer is what makes it a chain.
Announced, but not yet written down anywhere
The page you are trying to writenot yet valid
Pointer back to the previous page
The three payments above, bundled
Nonce, the only thing you are allowed to change
not found
SHA-256 of all three together. It has to start with the required zeros
press mine
Difficulty, leading zeros required4
Each extra zero makes it sixteen times harder. Bitcoin runs at about nineteen.
Guesses to write the page
0
Hashes to check the page
1
0.0s
Your time
0
What you earned for it
—
At Bitcoin's difficulty, on your laptop
That gap is the whole invention. Writing the page cost you millions of guesses and real
electricity. Checking it costs one hash, which is why nobody has to trust you and nobody has to be in charge.
Expensive to write, free to audit.
And the reward is not a detail. Whoever writes the page collects newly created coins plus
the fees on the payments inside it. That is the only reason anyone buys the electricity, and the electricity is
what makes the page hard to rewrite. Remove the reward and nobody mines. If nobody mines, anybody can write, and
you are back at the first screen.
Why it is a chain and not a pile
Each block carries the hash of the one before it. Change anything in an old block and its hash
changes, so the next block's reference no longer matches, and so does the one after that. Edit block 2.
0
Blocks now invalid
0
Blocks you must re-mine
VALID
Chain status
One edited character cost you every block after it. That is the difference between a chain
and a pile. In a pile you change one record. Here you buy the right to change history, at the price of redoing all
the work that came after, and the next screen is the part that makes it hopeless.
And the rest of the world does not wait for you
You want to erase a payment buried six blocks back. You must re-mine that block and every block
after it, while the honest network keeps extending the real chain. You only win if yours gets longer.
Share of the world's mining power you control30%
Each attack is abandoned after 300 blocks. At exactly half the network you do win in the end,
but the end can be a very long way off, which is why the tally falls short of the odds at that setting.
Your forged chain0 blocks
The honest chain6 blocks ahead
You start six blocks behind. That is why exchanges wait for six confirmations.
0
Attacks attempted
0
Attacks that worked
0.6%
Odds from the maths
Nothing is forbidden below half. It is a bet that loses. At thirty percent of the network
roughly one attack in a hundred and sixty gets there. At forty five percent it is nearer one in three. Above half
it is every single one, because you now add blocks faster than everyone else combined.
What you bought and what it cost. You no longer trust one keeper, because rewriting the
list now costs more than it is worth. In exchange you gave up everything else the keeper did. Nobody reverses a
payment you sent in error, nobody lends you anything between the trade and the settlement, and there is no lender
of last resort. Citigroup got most of its $900m back through a court. There is no court here.