Skip to main content

Module participation

Module participation 

Source
Expand description

Delta encoding for validator participation flags.

This module provides a compact sparse encoding for participation flag vectors used in Ethereum consensus state.

Rather than storing the entire target vector, only modified indices and their replacement values are encoded. Modified indices are represented as delta-varint encoded gaps, allowing sparse updates to compress efficiently.

Deltas produced by diff_participation can be applied in-place using apply_participation.

Functionsยง

apply_participation
Applies a participation delta in-place.
diff_participation
Computes a compact participation delta.