-
Notifications
You must be signed in to change notification settings - Fork 106
feat: add getLeafValue procedure
#2262
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
base: next
Are you sure you want to change the base?
Conversation
Co-authored-by: igamigo <[email protected]>
Co-authored-by: Marti <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
|
Also, for completeness we should be looking at V2 of the AggLayer contracts. For |
|
@mmagician Lets first merge #2238, then will rebase this PR against |
Resolves #2220
Builds on top of: #2238
This PR implements this solidity function in MASM:
To quickly test that the masm implementation of
get_leaf_valuematches the agglayer Solidity implementation, you can expirement by running this basic solidity contract in Remix:Link to Remix: Remix
Copy and paste this code into remix and run this test
test_keccak_hash_get_leaf_value:cargo test test_keccak_hash_get_leaf_value --package miden-testing