Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snapshot apis #293

Closed
twoeths opened this issue Dec 23, 2022 · 0 comments · Fixed by #400
Closed

Snapshot apis #293

twoeths opened this issue Dec 23, 2022 · 0 comments · Fixed by #400
Assignees

Comments

@twoeths
Copy link
Contributor

twoeths commented Dec 23, 2022

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants