Expand description
Compact balance-state delta encoding.
This module computes compact binary deltas between two validator balance snapshots.
The encoding is optimized for Ethereum beacon chain balance updates where the overwhelming majority of balances either:
- remain unchanged,
- change by a small amount,
- become zero, or
- are newly initialized.
The resulting delta is designed for:
- efficient serialization with
rkyv, - high compression with
zstd, - zero-copy decoding, and
- fast in-place reconstruction.
Functionsยง
- apply_
balances - Applies a balance delta in-place.
- diff_
balances - Computes a compact delta between two balance snapshots.