-
Notifications
You must be signed in to change notification settings - Fork 160
Register secp256r1 precompile #1044
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
Signed-off-by: Jonathan Oppenheimer <jonathan.oppenheimer@avalabs.org>
Signed-off-by: Jonathan Oppenheimer <jonathan.oppenheimer@avalabs.org>
Co-authored-by: Ceyhun Onur <ceyhun.onur@avalabs.org> Signed-off-by: Jonathan Oppenheimer <147infiniti@gmail.com>
Signed-off-by: Jonathan Oppenheimer <jonathan.oppenheimer@avalabs.org>
StephenButtolph
left a comment
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.
Can we add an E2E test for this precompile into the avalanchego test suite for Granite?
I suppose we could also add a unit test... but tbh I feel like this is a good candidate for an E2E test.
Co-authored-by: Stephen Buttolph <stephen@avalabs.org> Signed-off-by: Jonathan Oppenheimer <147infiniti@gmail.com>
ARR4N
left a comment
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 pending resolution of Stephen's suggestions.
That PR would be made in the AvalancheGo repository correct? Would you like me to attempt that? |
Why this should be merged
ACP-204 implemented secp256r1 Curve Support as a precompile to allow cheaper verification of "modern device security systems" that use this curve. It was already added to libevm in ava-labs/libevm#184.
Close #1042
How this works
This PR registers the libevm p256verify precompiles as a stateless precompile gatekept by the Granite release
How this was tested
precompile/contracts/p256verify/contract_test.goand standard CI.Need to be documented?
I'm not sure...
Need to update RELEASES.md?
Probably? I'm also not sure... are users informed when a new precompile is provided?