Skip to content

Merkle proofs

An inclusion proof ties the full receipt record to a checkpoint. The verifier computes receipt_leaf(attestation) rather than using the submitted SHA-256 digest as the leaf input. The position, tree size, and proof path must lead to the authenticated Merkle root using RFC 9162 rules.

GET /v1/bundle/{hash} may include a log_inclusion proof under the latest published checkpoint. Use GET /v1/log/proof?hash=HASH&tree_size=SIZE to request a proof at a particular published size. Verify the checkpoint's signatures with the keys for its key_epoch. For a compromised receipt epoch, authenticate inclusion against the exact root and size in the signed key transition instead.

A consistency proof shows that one checkpoint's tree is a prefix of the other. For example:

witness log consistency --first 100 --second 150 \
  --verify --network-config pinned-network.json

Replace the numbers with published tree sizes. Neither proof shows that the log contains every receipt. See Verify a proof and Merkle batches.