Explain why rewriting bitcoin's history costs so much and what a confirmation is.
Look up the deposit help page of any exchange that lets you buy bitcoin, and find the line that says how many confirmations a bitcoin deposit needs before it shows in your balance. Every exchange picks its own number and publishes it there. Each confirmation is one block, and the more blocks pile up after a payment, the harder that payment becomes to undo.
Darren is a 29-year-old engineer with S$2,000 (an example figure) he is curious about putting into bitcoin. A colleague mentions that the exchange will credit his deposit "after a few confirmations". A second colleague warns that someone with enough computers could hack the whole ledger one day. Darren nods along to both and understands neither. The ideas below are enough for you to explain both remarks to him.
A hash is a short fingerprint made from a piece of data, and any piece of data can be used. Feed in identical data and you always get an identical hash. Alter one character, say a single digit in one payment amount, and the hash that comes out is entirely different. You cannot know ahead of time what hash some data will give; the only way to find out is to run it.
Every bitcoin block carries the hash of the block that came before it, and that link is what the "chain" in blockchain refers to. Think of a pile of numbered receipts where each one has the fingerprint of the previous receipt printed across its top. Suppose you alter receipt 500. Its fingerprint changes, and the copy printed on receipt 501 stops matching. To hide the edit, 501 has to be rewritten, which gives it a new fingerprint, which breaks 502, and the rework carries on to the top of the pile.
Linking the blocks only makes an edit easy to spot. If that were all, a laptop could rebuild the entire pile in a second. The expense comes from the puzzle you met in lesson 1.1, "Bitcoin is a shared ledger that nobody runs", which also walked through how a payment is signed, broadcast and bundled into a block by a miner.
The protocol, the set of rules all bitcoin software follows, sets a target, such as a hash that begins with a long string of zeros, and a block only counts if its hash meets it. A miner puts together a block of payments along with the previous block's hash. The block also holds a spare number. The miner sets that number, computes the block's hash and compares it with the target. When it misses, the miner changes the spare number and computes again.
This goes on, attempt after attempt, until one hash meets the target, and at that point the block is valid. Since no one can predict a hash, trial and repetition is the only way to get there. The name for this is proof of work, because a valid block shows that a large amount of computing effort went into finding it.
Consider an attacker who paid someone in block 500 and now wants that payment gone. They have to edit block 500 and do its proof of work again. Then they have to repeat the work for 501, 502 and each block that follows. All of it must be finished faster than the rest of the network keeps stacking new blocks onto the honest version, because nodes, the computers that keep a copy of the ledger and check new blocks, go with whichever chain carries the most accumulated work. An attacker working more slowly than the network can never close the gap. Getting ahead requires more computing power than every honest miner put together.
In practice the attacker would have to buy or rent vast quantities of specialised hardware and pay the power bill to run it. The target would be a network whose coins would likely drop in value as soon as people learned of the attack. So bitcoin's security is usually described in money terms. What guards the ledger is the cost of outworking everyone else; no password or company promise is involved.
There is a limit. A chain is only as safe as the honest computing power working on it. Smaller blockchains with few miners have been rewritten in exactly this way, since renting enough power to overwhelm them was affordable. If someone describes a blockchain as "unhackable", ask what it would cost to outwork its honest miners.
A payment gets its first confirmation when it goes into a block. Every block added after that counts as one more. Each of those blocks is another layer an attacker would need to redo, so the odds of a reversal fall fast as the count rises.
An exchange therefore holds off on crediting a bitcoin deposit until it reaches the required number you looked up. Darren's deposit will not show in his account the moment he sends it; it shows once that count is met. A new block comes along roughly every ten minutes on average, so even a deposit with nothing wrong can take some time to appear. How many to wait for depends on the size of the payment. If a friend pays you a small amount, you might accept it at one confirmation, while a large amount sensibly waits for more.
Errors are buried in the same way. Suppose Darren pastes in a wrong address and the payment confirms. Every new block buries it further, and there is no operator who could pull it back.
Proof of work burns energy on purpose, since the cost is what makes cheating unattractive. The bitcoin network draws a very large amount of electricity, and this is the main environmental criticism made of it. University research groups publish estimates of the total, and their figures differ depending on the method each uses. If the number matters to a decision you are making, find a current estimate and read how it was worked out.
Supporters point out that some mining runs on surplus or renewable power. Critics answer that all that energy pays for a payment system handling far fewer transactions than card networks do. You can understand the design without settling this. Security and energy use are one thing viewed from two sides, since the electricity honest miners spend is the bill an attacker would have to exceed. Ethereum moved away from mining for this reason, and lesson 2.1 covers that change.
Darren's colleagues were each half right. Deposits wait for confirmations because every block makes a reversal harder. The ledger could in principle be rewritten, though only by someone prepared to outspend the honest miners.
You can watch the first part happen on any public block explorer, a website that shows bitcoin's blocks and the transactions inside them. Search for a transaction, and the page shows how many blocks now sit on top of it. Older transactions show thousands. A brand new one may show none yet, and you can refresh the page and watch the count start to climb.
Pick a transaction on a block explorer and note how many confirmations it has, then write two sentences telling Darren what that number means and why reversing it would cost an attacker so much.
Junxiong-WFG Organisation is an authorised representative of AIA Financial Advisers Private Limited (Reg. No. 201715016G).