Skip to content

Log tiles

A client can fetch C2SP Merkle hash tiles to build its own inclusion or consistency proofs. Start by verifying the checkpoint at GET /checkpoint against keys you trust. The tiles alone are not proof: the hashes must lead back to the signed root.

Example Contents
/tile/0/000 The first 256 leaf hashes.
/tile/0/000.p/42 The first 42 leaf hashes, if a checkpoint was published at size 42.
/tile/1/000.p/1 The root of the first 256 leaves, if a checkpoint was published at a size from 256 through 511.

Each response contains consecutive 32-byte hashes (application/octet-stream). A full tile is 8,192 bytes. At each higher level, a hash represents a full tile from the level below. Indexes use three-digit groups: index 1234067 is x001/x234/067.

Full tiles are available once a published checkpoint covers them. A partial tile is available if a published checkpoint calls for that width; it stays available after the corresponding full tile appears. Successful tile responses can be cached for a year, but the latest checkpoint should be fetched again before relying on its freshness. A tile that does not yet exist returns 404 without caching.

Witness serves hash tiles only, not the C2SP /tile/entries/ endpoint. The tiles don't publish submitted hashes or receipt records. A client with a receipt computes its existing log leaf and can use the tiles to verify its position. The /v1/log/ proof endpoints and receipt bundles still work.

Storage

The gateway saves each closed receipt's position and the hashes of complete subtrees in the same transaction as the batch. Tile reads use an indexed range. Proof and checkpoint construction look up just the subtrees they need. The first startup with this index rebuilds it from saved batches and checks that existing checkpoint roots match before committing the rebuild. See Upgrades.