transparency-dev / trillian-tessera

Go library for building tile-based transparency logs (tlogs)
Apache License 2.0
8 stars 7 forks source link

Add support for Static CT API entry bundle paths #178

Closed AlCutter closed 2 weeks ago

AlCutter commented 2 weeks ago

This PR adds support to Tessera for storing CT entry bundles in under data.

The Static CT API defines leaf entry bundles as being stored under a tiles/data path. This is incompatible with the tlog-tiles spec which defines that path as tiles/entries.

This PR adds a CT-only storage option, WithCTLayout, which instructs storage implementations to use the Static CT API path.

A strong goal of this PR was to make it impossible for users of Tessera to implement arbitrary layout schemes, or accidentally use the CT layout without a clear signal that this is what they are doing.

Fixes #171