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 a detector for singly-hashed Merkle leaves using OZ's MerkleProof library #2675

Open
bsamuels453 opened this issue Feb 25, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@bsamuels453
Copy link
Contributor

Describe the desired feature

https://www.rareskills.io/post/merkle-tree-second-preimage-attack

skip to the image with the green underlines. We should have a detector that can identify if the leaf variable has had only 1 keccack used to generate it, or none at all.

The case where only 1 keccak has been used should be a very good heuristic. The case where no keccaks have been used would be good but likely to have more false positives.

@bsamuels453 bsamuels453 added the enhancement New feature or request label Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant