-
Notifications
You must be signed in to change notification settings - Fork 144
zkevm: add ECRECOVER, SHA2-256, IDENTITY and RIPEMD precompiles #1524
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
Conversation
d53e674
to
bdfaa17
Compare
b8d50b4
to
99f249d
Compare
bdfaa17
to
d56f4ef
Compare
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.
These are not zkevm specific but good general benchmarks for EVM. Can we make this framework for benchmarks a bit more generic? I'd like to contribute my existing benchmarks and more.
@marioevz, can you take a look at this PR? Since I'm touching the filling command, I would prefer to have some quick check from you if sounds good! |
7376d45
to
100a25e
Compare
Signed-off-by: Ignacio Hagopian <[email protected]>
Signed-off-by: Ignacio Hagopian <[email protected]>
Signed-off-by: Ignacio Hagopian <[email protected]>
Signed-off-by: Ignacio Hagopian <[email protected]>
Signed-off-by: Ignacio Hagopian <[email protected]>
Signed-off-by: Ignacio Hagopian <[email protected]>
100a25e
to
97de8f5
Compare
Signed-off-by: Ignacio Hagopian <[email protected]>
Signed-off-by: Ignacio Hagopian <[email protected]>
Signed-off-by: Ignacio Hagopian <[email protected]>
Signed-off-by: Ignacio Hagopian <[email protected]>
Signed-off-by: Ignacio Hagopian <[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.
Two minor comments, thanks!
Signed-off-by: Ignacio Hagopian <[email protected]>
This PR:
zkevm
pytest markers since the testing framework now automatically does this.Environment()
configured gas limits, which are expected to be correctly set via the new--block-gas-limit
filling flag.Cycle counts in the new precompiles:
The last three are all part of a generic test since these precompiles have the same input parameter structure (i.e.,
data
). The generic test automatically discovers the optimal input length for each case to amortize the static cost as much as possible against the quadratic cost of memory expansions. ECRECOVER is a separate test since the parameter input structure is particular.