Skip to main content

Module tile

Module tile 

Source
Expand description

C2SP tlog-tiles path encoding.

Constants§

TILE_HEIGHT
Tile height (number of hash levels per tile). C2SP default = 8 → 256 hashes.
TILE_WIDTH
Number of leaf hashes per tile (2^TILE_HEIGHT).

Functions§

leaf_tile
Compute which tile contains a given leaf index.
tile_count
Compute the number of full tiles and the partial tile width for a tree of size leaves.
tile_path
Encode a tile path per C2SP tlog-tiles spec.