ssz icon indicating copy to clipboard operation
ssz copied to clipboard

Snapshot apis

Open twoeths opened this issue 3 years ago • 0 comments

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

  1. get_snapshot: API to extract finalized roots given a gindex (or depth + index) (below is for depth = 4 and deposit_count = index)
Screen Shot 2022-12-23 at 15 33 55
  1. 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)

twoeths avatar Dec 23 '22 08:12 twoeths