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

WIP: add a leaf map #63

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Davidson-Souza
Copy link
Collaborator

When proving, we currently ask for positions. However, positions may change during updates, so externally holding those positions may be cumbersome. The leaf hash, on the other hand never changes.

This commit does the same we do for MemForest, creating a map from leaf hashes to a reference to the actual leaf in memory. Once we need to prove it, we compute the position on-the-fly.

When proving, we currently ask for positions. However, positions may
change during updates, so externally holding those positions may be
cumbersome. The leaf hash, on the other hand never changes.

This commit does the same we do for `MemForest`, creating a map from
leaf hashes to a reference to the actual leaf in memory. Once we need to
prove it, we compute the position on-the-fly.
This commit makes all proving-related methods take leaf hashes instead
of positions, and adds additional tests to proving and ingesting proofs
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 this pull request may close these issues.

1 participant