Expand description
Delta encoding for validator inactivity scores.
Inactivity scores are represented as a vector indexed by validator index. This module encodes changes between two score vectors without storing the complete target vector.
Two representations are supported:
- A sparse representation containing only changed indices and their target values.
- An all-zero representation for transitions to a completely zero-valued target vector.
Newly added validator scores are stored separately as an extension.
Deltas produced by diff_inactivity can be applied in place using
apply_inactivity.
Functionsยง
- apply_
inactivity - Applies an inactivity-score delta to a vector in place.
- diff_
inactivity - Computes a compact delta between two validator inactivity-score vectors.