What is a Block Hash?
In real blockchains, a hash is a unique cryptographic fingerprint of a block's contents. It's created by running all the block data through a complex mathematical function (like SHA-256). Any tiny change in the block would completely change the hash.
For our classroom simulation, we use a simplified version that captures the same concept: the hash depends on which transactions you selected, and different transaction selections produce different hashes.
Write down all the transaction IDs you included in your block.
Example:
Your block contains: TX_001, TX_002, TX_003, TX_007, TX_010, TX_011
For each transaction ID, take only the last digit (the ones place).
Example:
Sum all the extracted digits to get your block hash.
Example:
Quick Reference Table
| TX ID | Last Digit | TX ID | Last Digit |
|---|---|---|---|
| TX_001 | 1 | TX_011 | 1 |
| TX_002 | 2 | TX_012 | 2 |
| TX_003 | 3 | TX_013 | 3 |
| TX_004 | 4 | TX_014 | 4 |
| TX_005 | 5 | TX_015 | 5 |
| TX_006 | 6 | TX_016 | 6 |
| TX_007 | 7 | TX_017 | 7 |
| TX_008 | 8 | TX_018 | 8 |
| TX_009 | 9 | TX_019 | 9 |
| TX_010 | 0 | TX_020 | 0 |
Practice Exercise
Calculate the hash for this block:
Selected transactions: TX_004, TX_006, TX_008, TX_009, TX_015
Your work:
Click to reveal answer
Common Mistakes to Avoid
- Don't include transactions you didn't select in your block
- Don't forget to extract the last digit (use 7 from TX_007, not 007)
- Remember TX_010 and TX_020 have last digit 0 (not 1 or 2)
- Double-check your addition – use a calculator if needed!
Connection to Real Blockchains
Real blockchain hashes (like SHA-256) are much more complex, producing a 64-character hexadecimal string
like: 0000000000000000000abc...
But the principle is the same: the hash is a unique fingerprint that:
- Changes completely if any transaction is modified
- Can be quickly verified by others
- Links blocks together in a chain (each block includes the previous block's hash)
Our simplified version teaches these core concepts without requiring cryptographic calculations!
© Joerg Osterrieder 2025-2026. All rights reserved.