By CrowdSent Blog Team

A Merkle tree in blockchain groups hashes into a single commitment called a root. An inclusion proof supplies a path that lets a verifier check whether a particular record belongs to the data committed by that root. The crucial qualification is “that root”: matching an arbitrary root is not the same as verifying an accepted blockchain history.

This guide builds a small original example, follows one record through two hashing steps, and then changes it. The goal is to read evidence carefully, not to implement production cryptography or decide whether an asset is worth buying.

What a Merkle tree in blockchain commits to

Bitcoin’s block-chain developer guide describes transaction hashes paired and hashed repeatedly until one value remains in a block header. The root is a compact commitment; it is not a compressed copy from which every transaction can be recovered. Different protocols can use different tree structures and leaf encodings.

For the example below, imagine four fictional records ordered A, B, C and D. We write H for a cryptographic hash function and “+” for joining two encoded byte strings in a fixed order. These are teaching labels, not Bitcoin transaction IDs. Production formats must specify exact bytes, domain separation where required, tree shape and validation rules.

Trace a Merkle tree in blockchain with four records

First calculate hA = H(A), hB = H(B), hC = H(C) and hD = H(D). Then calculate hAB = H(hA + hB) and hCD = H(hC + hD). The root is R = H(hAB + hCD). Each label stands for a full hash, even though the diagram uses short names for readability.

Simplified Merkle tree in blockchain example: record B combines with left sibling hA, then right sibling hCD to reconstruct root R.
Original ordered four-record example. The proof uses two sibling hashes; a real verifier must follow its protocol’s encoding and hashing rules.
Original four-record exercise; the proof path contains two sibling hashes.
StepVerifier already hasAdditional evidenceResult
1Record B and agreed encodingNo sibling yetCompute hB
2hBhA on the leftCompute hAB
3hABhCD on the rightCompute candidate R
4Candidate RAuthenticated reference rootCompare the two roots

The verifier does not need records C and D individually for this membership check. Their combined branch hash is enough for this path. Nor does the verifier need record A itself: hA is sufficient. That narrower evidence requirement explains the practical attraction of a Merkle proof.

Why direction and encoding matter

Reversing a pair changes the input to H. In our ordered example, H(hA + hB) is not interchangeable with H(hB + hA). A proof therefore needs enough structure to identify how each sibling is combined. A verifier using the wrong byte encoding can also fail even when the displayed record looks identical to a human.

This is a reason to avoid copying a proof between unrelated tools by sight. For example, a tool might show a hexadecimal hash while another expects decoded bytes. A displayed label is not a protocol specification. Record the network, tree type, algorithm and encoding together with the proof.

RFC 9162 specifies Merkle inclusion proofs for Certificate Transparency, a different application. Its explicit tree and hash rules illustrate why “a Merkle proof” needs a defined construction. It is not a substitute specification for a Bitcoin block.

Change B and see what must change

Now replace the fictional record B with B′ while leaving A, C and D unchanged. Calculate hB′ from the altered record, then hAB′ from hA and hB′, and finally R′ from hAB′ and hCD. Under the intended cryptographic assumptions, this path produces a different root. The sibling values need not change, but the values along B’s route do.

Try two questions separately. Does B′ reproduce the old reference root? Normally it does not, which exposes the mismatch. Can somebody publish a new root for a dataset containing B′? Yes. The second question explains why the identity and authority of the reference root matter as much as the arithmetic of the proof.

This exercise is about a commitment to bytes. A record that says “delivery completed” can be included correctly even if the real-world delivery never happened. Hashing does not independently inspect the physical event.

Separate inclusion, chain acceptance and completeness

Bitcoin’s operating-modes guide explains that a branch can demonstrate a transaction’s inclusion in a block without itself guaranteeing transaction validity. Header-chain checks and the assumptions of the client matter. A full validating node and a service returning a proof perform different jobs.

Use three boxes in a research note: inclusion evidence, accepted-chain context and claim coverage. A successful comparison fills the first box for the selected record and reference root. It does not automatically fill the others. Our Bitcoin confirmations guide covers block-depth context; node and validator roles separates verification infrastructure.

Completeness is another boundary. Showing that one customer entry appears in a published dataset does not, by itself, establish that every liability was included. This is why a technical inclusion demonstration must not be promoted into a solvency conclusion. See proof of reserves versus an audit for that distinct reporting question.

Document a Merkle tree in blockchain: an evidence note

An original review worksheet can be short: identify the record; record the reference root and its source; preserve the sibling path and direction information; note the protocol and verifier; save the verification result and timestamp. Also write one sentence stating the claim that remains outside the check.

For example: “B reconstructed root R from this published snapshot; we did not establish whether that snapshot contains all relevant records.” That is more useful than an unsupported “verified” badge. A blockchain explorer can help locate references, but its display and the underlying proof should not be confused.

Frequently asked questions

What is a Merkle root?

It is the final hash produced by a defined tree construction. In our example it commits to four ordered records through their branch hashes. It does not let a reader reconstruct all four records from the root alone.

What does an inclusion proof contain?

For our four-record exercise, it contains two sibling hashes plus their positions. Real formats also require the relevant leaf data or hash and construction-specific information. The verifier must know which reference root to use.

Why are only two sibling hashes needed here?

B has two levels above it: its pair with A, then its pair-branch with the C–D branch. One sibling at each level completes its route to the root. This statement applies to the particular balanced four-leaf example.

Does changing a record alter the entire stored dataset?

The example’s other records remain unchanged. Recomputing the changed record’s leaf and its ancestors changes the commitment path. An actual storage system may manage updates differently; the diagram is not a storage-cost benchmark.

Does a valid proof reveal the other records?

The sibling hashes used here do not supply the full other records. That does not make every proof system confidential: disclosed leaf data, small guessable datasets and application metadata still need separate privacy analysis.

Can a valid proof use a dishonest root?

It can match a root selected by an untrusted publisher. The computation alone does not authenticate the publisher or connect the root to an accepted chain. Verify the reference source separately.

Does Merkle inclusion prove a transaction is valid?

No. Inclusion and validity are separate claims. The proof must be interpreted within the network’s validation and chain-selection rules and the client’s security assumptions.

Does inclusion prove a dataset is complete?

Not on its own. A selected record can be included in a dataset that omits other relevant records. Completeness requires a separately defined scope and evidence.

Is every Merkle tree in blockchain built the same way?

No. A named protocol may use different leaf encoding, ordering, tree shapes or related authenticated data structures. Apply that protocol’s specification rather than assuming the teaching diagram is universal.

What should I do when verification fails?

Keep the exact inputs and error, then check network, root, record encoding, sibling order and verifier version. A failure can reveal inconsistent evidence or a format mismatch; it does not identify the cause by itself.

Explore CrowdSent and its current membership options to learn about the service. This guide does not describe a CrowdSent verification or node-hosting feature.

Educational information only, not financial or technical implementation advice. Sources checked 27 October 2026. Examples and diagrams are illustrative, not live network data.