ssz
ssz copied to clipboard
Snapshot apis
Is your feature request related to a problem? Please describe.
This is to support EIP-4881 https://eips.ethereum.org/EIPS/eip-4881#deposit-finalization-conditions
-
get_snapshot: API to extract finalized roots given a gindex (or depth + index) (below is for depth = 4 and deposit_count = index)
-
from_snapshot: API to reconstruct the tree from a snapshot (similar to reconstructing from a proof), params would be a list of finalized roots and a gindex (or depth + index)