Merkle Trees Explained

📖 4 min read

✍️ Napsal a zkontroloval Karel HavlíčekAktualizováno 2026🛡️ Redakčně nezávislý

Quick Answer

Merkle strom je chytrý trik, který umožňuje lehké telefonní peněžence potvrdit, že platba je v bloku, aniž by se stahoval celý blockchain. Komprimuje tisíce transakcí do jednoho malého otisku prstu.

💡 Think of it as…

Vyřazovací turnaj otisků prstů. Spárujte transakce, hashujte každý pár do jednoho kódu, poté tyto kódy spárujte a znovu hashujte – kolo po kole – dokud jediný hash šampiona ("Merkle root") nepředstavuje celý blok.

Building the tree

Every transaction in a block is hashed. Those hashes are paired and hashed together, and the process repeats up the levels until only one hash remains: the Merkle root, which is stored in the block header.

The magic: proofs

To prove a single transaction is in a block, you only need a short path of hashes up the tree — not the whole block. This is called a Merkle proof, and it is what makes lightweight (SPV) wallets possible.

Why it matters

Merkle trees give Bitcoin efficiency and integrity at once: change any transaction and the root changes, instantly invalidating the block, yet verifying inclusion stays tiny and fast even for millions of transactions.

🔑 Key takeaway

Strom Merkle vtěsná celý blok transakcí do jednoho kořenového hashe, takže kdokoli může ověřit jedinou platbu s malým důkazem namísto celého blockchainu.

Why this matters for you

This is why the mobile wallets popular across Asia can be both lightweight and trustworthy — Merkle proofs let your phone verify payments without storing hundreds of gigabytes.

Často kladené otázky

Do I need to understand Merkle trees to use Bitcoin?

Not at all — it works silently in the background. But it explains how your phone wallet can be secure without being heavy.

What is the Merkle root?

The single hash at the top of the tree, stored in the block header. It acts as a tamper-proof summary of every transaction in the block.

Is this related to SHA-256?

Yes — the tree is built entirely from SHA-256 hashes. Merkle trees are an application of cryptographic hashing.

Keep learning