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

feat(levm): implement precompile ripemd160 #1521

Merged
merged 56 commits into from
Dec 18, 2024

Conversation

maximopalopoli
Copy link
Contributor

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.

ilitteri and others added 30 commits December 10, 2024 13:07
…ass/ethrex into precompiles_support_scaffolding
The tests were not passing because the addresses assigned for the
 contracts were the reserved for the precompiles
@maximopalopoli maximopalopoli self-assigned this Dec 17, 2024
@maximopalopoli maximopalopoli added the levm Lambda EVM implementation label Dec 17, 2024
@maximopalopoli maximopalopoli marked this pull request as ready for review December 17, 2024 16:36
@maximopalopoli maximopalopoli requested a review from a team as a code owner December 17, 2024 16:36
Copy link
Contributor

@LeanSerra LeanSerra left a 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.

Copy link
Contributor

@JereSalo JereSalo left a 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

Base automatically changed from levm/feat/impl-precompile-sha2-256 to main December 18, 2024 14:28
@JereSalo JereSalo enabled auto-merge December 18, 2024 21:47
@JereSalo JereSalo added this pull request to the merge queue Dec 18, 2024
Merged via the queue into main with commit 4b7c965 Dec 18, 2024
16 checks passed
@JereSalo JereSalo deleted the levm/feat/impl-precompile-ripemd160 branch December 18, 2024 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
levm Lambda EVM implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants