-
Notifications
You must be signed in to change notification settings - Fork 33
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
feat(levm): implement precompile ripemd160 #1521
Conversation
…ass/ethrex into precompiles_support_scaffolding
…l-precompile-sha2-256
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.
LGTM, the precompiles are starting to look really clean. It would be nice if you added some simple unit tests, just the example from evm.codes would be enough. Just a suggestion.
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.
The PR looks good but can you add a simple unit test checking that the gas and output of the function are correct?
Using evm.codes examples for each precompile would be great!
edit: oh, Lean said the same haha
Motivation
The goal is to implement ripemd160 precompile.
Description
The implementation is quite similar to the sha2-256. There is one test named
static_Call50000_rip160
that fails, but I think that fails due to other reasons.