DeFi University
Skip to lesson

Exercise 7

Why It's Hard to Cheat

About 15 min

Your task

You'll hash three nearly identical sentences yourself and see the avalanche effect with your own eyes. Then you'll use the Bitcoin whitepaper's numbers to work out how long a seller should wait before trusting a payment, and where that rule stops working.

Time
20 to 25 minutes
You'll need
any SHA-256 tool (a terminal, a spreadsheet add-on or a reputable online hash calculator) and a calculator
Builds on
Lesson 7

Warm-up

Check yourself

You hash the same sentence on your phone today and on a laptop next year. What do you get?

Check yourself

An attacker controls 20% of a proof-of-work network's hashing power. What happens to their chance of rewriting your payment as more blocks are added on top of it?

Free with sign-in

Sign in to keep reading. It is free.

Stage 1, Foundations, and a few preview lessons are free with your email. We send you a sign-in link; there is no password.