Skip to main content

Module historical_log

Module historical_log 

Source
Expand description

Delta encoding for append-only historical logs.

Both historical_roots (Phase0 to Bellatrix) and historical_summaries (Capella+) are append-only logs that grow by exactly one item per 8,192 slots. This module uses protocol math to calculate exactly how many items were appended, rather than comparing base and target byte arrays.

Functionsยง

apply_historical_log
Applies a historical log delta in place.
diff_historical_log
Computes a historical log delta using protocol math.