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

Pollard: add a leaf map #63

Merged
merged 2 commits into from
Jan 29, 2025
Merged

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
@Davidson-Souza Davidson-Souza marked this pull request as ready for review January 29, 2025 16:43
@Davidson-Souza Davidson-Souza changed the title WIP: add a leaf map Pollard: add a leaf map Jan 29, 2025
@Davidson-Souza Davidson-Souza merged commit faa29fb into mit-dci:main Jan 29, 2025
10 checks passed
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