Expand description
High-performance delta encoding for Ethereum consensus state.
eth_state_diff computes compact deltas between two beacon states and
efficiently reconstructs the target state by applying those deltas.
The crate is designed for consensus clients, archival storage, state synchronization, and historical state reconstruction.
Individual state components use specialized encodings chosen for their respective data structures, including sparse patches, circular buffer updates, packed bit vectors, and FIFO queue deltas.
Deltas are designed to serialize efficiently with rkyv, although the
library itself remains serialization-agnostic.
Modules§
- balances
- Compact balance-state delta encoding.
- eth1_
data_ votes - Delta encoding for the Eth1 data vote list.
- fifo_
queue - Delta encoding for fixed-size SSZ FIFO queues.
- inactivity_
scores - Delta encoding for validator inactivity scores.
- participation
- Delta encoding for validator participation flags.
- randao_
mixes - Delta encoding for Ethereum RANDAO mix buffers.
- recent_
roots - Delta encoding for fixed-size Ethereum consensus root buffers.
- slashings
- Delta encoding for Ethereum slashing vectors.
- types
- validators
- Delta encoding for Ethereum validator records.
Structs§
- Archived
Beacon State Delta - An archived
BeaconStateDelta - Beacon
State Delta - Complete delta describing the transition between two beacon states.
- Beacon
State Delta Resolver - The resolver for an archived
BeaconStateDelta
Enums§
- Archived
Fork Name - An archived
ForkName - Fork
Name - Ethereum consensus fork supported by this delta.
- Fork
Name Resolver - The resolver for an archived
ForkName
Traits§
- Diff
Source - Read-only view of two beacon states.
- Diff
Target - Mutable view of a beacon state.