-
Notifications
You must be signed in to change notification settings - Fork 414
eips/osaka/eip 7951 #1291
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
eips/osaka/eip 7951 #1291
Conversation
|
Thanks Louis! |
ff0be31 to
a571500
Compare
|
@gurukamath Thank you for your review, I've updated based on the comment, and run the following command for linting! |
| result : `ethereum.base_types.Bytes` | ||
| return 1 if the signature is valid, empty bytes otherwise |
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.
This docstring doesn't match the behaviour of the function. This always returns None?
|
|
||
| return |
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.
| return |
|
|
||
| try: | ||
| secp256r1_verify(r, s, public_key_x, public_key_y, message_hash) | ||
| except Exception: |
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.
Catching a bare Exception here can mask a lot of problems. You should catch the specific error type that you expect to be thrown.
b10d48d to
920bd52
Compare
920bd52 to
1f33b74
Compare
…reum#1292) * chore(docs): don't include function pages in site search index ethereum#1291 * docs: update changelog
…reum#1292) * chore(docs): don't include function pages in site search index ethereum#1291 * docs: update changelog
What was wrong?
Related to Issue #1244.
The previous PR #1249 could be closed, since it based on the devnets/osaka/0.
How was it fixed?
Implement EIP-7951
Description
Note on PR
PR ethereum/execution-spec-tests#1670 adds EEST test cases related to the secp256r1 (p256verify) precompile. Since it involves cryptographic operations, some dependencies on cryptography libraries are required.
If you want to run the tests locally, you should configure the appropriate settings in the ethereum-spec-evm-resolver repository to support the secp256r1 curve.
Additionally, please be aware that—per the ACD meeting on June 19 — the gas cost and return value specification for the p256verify precompile may be subject to change. Updates to the spec may affect test behavior or validity.
Cute Animal Picture