Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
A blockchain has blocks. A new block is added to the honest chain every minutes. Adding a block, or working out a new hash for one, needs a difficult puzzle to be solved, which takes the attacker minutes per block as well.
An attacker wants to change a payment in block .
A payment is sent to a network of computers (nodes). They check it, group it with others into a new block with a time-stamp and the previous hash, add the block to the chain and update every copy. Every payment stays in the chain, so units can be tracked back. A version is accepted when more than half of the copies hold it:
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.
Step 1. The blocks. blocks.
Step 2. The time. minutes.
Step 3. The honest network. In minutes it adds new blocks. The chain is now blocks long.
Step 4. Why the attacker loses. After minutes the attacker has a changed chain of blocks, while the honest chain has . The attacker is still blocks behind, and both sides add blocks at the same speed, so the gap never closes. On top of that, the attacker's version would have to be on more than half of the copies.
Answer: (a) blocks. (b) minutes. (c) blocks; the gap stays the same, so the attacker never catches up.
Log in to join the discussion.
Loading…