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

Promote indexed merkle map to standard API #2114

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

Conversation

45930
Copy link
Contributor

@45930 45930 commented Apr 1, 2025

This API is tested and documented, (more).

It seems ready to leave experimental, to me. If not, what do we need to do?

@45930 45930 requested review from a team as code owners April 1, 2025 17:43
@45930 45930 requested review from Shigoto-dev19 and querolita April 1, 2025 17:43
@mitschabaude
Copy link
Contributor

The current API has a subtle gotcha that I think should be mitigated.

The map 'commitment' consists of two field elements: root and length. It's easy to miss the length and only check for the root.

They should be combined in some way so that you include/check against both fields by default.

@45930
Copy link
Contributor Author

45930 commented Apr 2, 2025

@mitschabaude I'm curious - is there actually a collision risk with trees of different lengths? Or else why would we need to include the tree length?

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.

2 participants