Tutorvo

Toy Hashes & Chained Blocks: MOD Hashes, Previous-Hash Links and Spotting a Tampered Block

Lesson 2 of 815 minLab

This lesson is part of the course

In this lesson

You recompute a toy hash for each of eight blocks from its data and stored previous hash, compare it with the stored hash, check every link to the previous block and find the first block someone edited.

Buy the course once for $9.99 to unlock every lesson and lab, the final exam and the certificate – lifetime access, no subscription.

Lessons in this course

  1. A Shared Ledger: Balances from a Transaction Log, Running Balances in Order and Double SpendsLab15 min Locked
  2. Toy Hashes & Chained Blocks: MOD Hashes, Previous-Hash Links and Spotting a Tampered BlockLab15 min Locked
  3. Merkle Trees: Pairing Hashes Level by Level, the Odd Leaf, the Root and a Proof PathLab15 min Locked
  4. Proof-of-Work: Targets, a Given Nonce Table, the First Valid Nonce and Expected TriesLab15 min Locked
  5. Difficulty Adjustment: Actual vs Target Block Times over a Window and a Clamped New DifficultyLab15 min Locked
  6. Unspent Outputs: Wallet Balances, Spending Whole Outputs, Change and the Implied FeeLab15 min Locked
  7. Fee Markets: Fee Rates, Ranking the Waiting Pool, Packing a Block and Waiting BlocksLab15 min Locked
  8. Capstone – Issuance & Costs: Halving Rewards, Cumulative Supply, Reward Value vs Energy Cost and a ChartLab15 min Locked