Tutorvo

Merkle Trees: Pairing Hashes Level by Level, the Odd Leaf, the Root and a Proof Path

Lesson 3 of 815 minLab

This lesson is part of the course

In this lesson

You build a Merkle tree over six transaction hashes, pair the odd node with itself, compute the root and walk a three-step proof that Tx 5 is in the block without looking at the other transactions.

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