Merkle tree
A Merkle tree is a data structure in which cryptographic hashes link data items into a hierarchy. A hash at the root can commit to the contents of the entire tree, while a compact inclusion proof lets a verifier check one item using only the hashes along its path. Merkle trees are used in authenticated data structures and public append-only logs, including Certificate Transparency.
Structure and operation
In a basic binary Merkle tree, each leaf represents a data item and stores its cryptographic hash. Each parent stores a hash computed from its children's hashes; this process continues until a single root hash is produced. A system can publish or otherwise authenticate that root as a commitment to the dataset. A change to an item ordinarily changes the hashes along its path and therefore changes the root. Secure use depends on a suitable hash function and unambiguous encoding of leaves and internal nodes; protocol details such as domain separation help prevent structural ambiguities.
Inclusion proofs
To demonstrate that a particular item belongs to the committed dataset, a prover supplies the item and the sibling hashes needed to recompute the root from its leaf upward. The verifier checks the result against a trusted root. For a balanced binary tree containing N leaves, an inclusion proof uses a number of sibling hashes that grows logarithmically with N, rather than requiring the verifier to download every item. The root alone does not establish that a record is present; the proof and the trustworthiness of the root are essential.
Append-only logs
Certificate Transparency uses Merkle trees to organize logged certificates and support public auditing. A signed tree head identifies a particular log state. An inclusion proof can show that a certificate is in that state, while a consistency proof can show that a later tree extends an earlier one without changing its existing entries. These proofs help monitors and other observers detect certain forms of omission or inconsistent log history. Cryptographic proofs do not by themselves ensure a log is honest or that every observer sees the same view; monitoring and comparison between observers are also important.
Uses and limits
Merkle trees are useful when large collections must be checked efficiently, including authenticated storage, distributed systems, software or data distribution, and transparency logs. Variants may support updates, non-binary branching, or sparse key spaces. A tree does not encrypt its contents, guarantee that the committed data is true, or provide authentication unless the root is obtained through a trusted or verifiable channel. Implementations must also specify how data is encoded and hashed, since incompatible conventions can produce different roots or weaken verification.
Key facts
- Leaf values
- In a basic Merkle tree, leaves are hashes of individual data items.
- Internal nodes
- Internal nodes are hashes derived from their child hashes.
- Root hash
- The root commits to the tree's contents, provided the hash function and encoding are used securely.
- Inclusion proof
- A proof uses the sibling hashes on the path from an item to the root, allowing verification without downloading the whole dataset.
- Certificate Transparency
- CT uses Merkle inclusion and consistency proofs to audit certificate-log entries and append-only growth.
- Not encryption
- A Merkle tree provides integrity-verification mechanisms, not confidentiality or proof that source data is factually correct.
Ask about this article
Answers use only “Merkle tree” and its references, with citations.
References
- 1.RFC 9162: Certificate Transparency Version 2.0
Internet Engineering Task Force (IETF), published by the RFC Editor · other · reliability: unverified · retrieved 25 October 2026
Supports: Specifies Certificate Transparency v2 and describes Merkle trees for inclusion proofs, consistency proofs and append-only log auditing.
- 2.How CT works
Certificate Transparency · other · reliability: unverified · retrieved 25 October 2026
Supports: Explains the use of Merkle trees, signed tree heads, inclusion proofs and consistency checks in Certificate Transparency logs.
- 3.Merkle Trees — Proof-Oriented Programming in F documentation
F* Project · other · reliability: unverified · retrieved 25 October 2026
Supports: Provides a formalized explanation of a Merkle tree, root authentication and efficient evidence for membership of an item.
- 4.A Digital Signature Based on a Conventional Encryption Function
Springer Nature · other · reliability: unverified · retrieved 25 October 2026
Supports: Ralph C. Merkle's 1988 CRYPTO '87 paper, a foundational work on one-time signatures and tree-based authentication.
References are suggested by the research engine and may be incomplete. Unverified URLs are omitted rather than guessed.
Article history
- Version 125 October 2026 · EditorCreated by Zapia