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

Add leaf_hash function to SparseMerkleTree #149

Open
antazoey opened this issue Jan 30, 2024 · 1 comment
Open

Add leaf_hash function to SparseMerkleTree #149

antazoey opened this issue Jan 30, 2024 · 1 comment

Comments

@antazoey
Copy link
Contributor

What feature should we add?

The equivalent of https://github.com/OpenZeppelin/merkle-tree/blob/master/src/standard.ts#L114-L116

@antazoey
Copy link
Contributor Author

It looks like the data is abi encoded before keccaked: https://github.com/OpenZeppelin/merkle-tree/blob/master/src/utils/standard-leaf-hash.ts#L7

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

No branches or pull requests

1 participant