-
Notifications
You must be signed in to change notification settings - Fork 1
EIP:7823 Set upper bounds for MODEXP && EIP-7883: ModExp Gas Cost && … #63
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
base: main
Are you sure you want to change the base?
Conversation
…EIP-7951: Precompile for secp256r1 Curve Support
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.
just a couple of nits, otherwise lgtm!
|
||
// Galileo should accept this (no 32-byte limit) | ||
let galileo_result = galileo_run(&input, gas_limit); | ||
assert!(galileo_result.is_ok(), "Galileo should accept base_len > 32"); |
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.
should we check the result is the expected value?
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.
added 8f5ba7d
src/spec.rs
Outdated
Self::FEYNMAN | | ||
Self::Galileo => SpecId::SHANGHAI, |
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.
For the CLZ
opcode we might run into the same "selectively enable EIP" issue as before. @greged93
But we can address this in a separate PR.
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.
right, I had the same thing in mind
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.
I don't get the issue here, is there more context for it?
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.
Basically once you set SpecId::OSAKA
, that will enable all Osaka upgrade changes. But in our case we only want to enable some (e.g. CLZ opcode) and not others. Revm currently does not allow selectively enabling EIPs. We ran into this with 7702.
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.
ok, get it. I'll open a pr to enable CLZ
Co-authored-by: greg <[email protected]>
…EIP-7951: Precompile for secp256r1 Curve Support