Skip to content

feat: implement EIP-7951 - precompile for secp256r1 (#31991)#53

Merged
eomti-wm merged 2 commits intodevfrom
feat/secp256r1
Feb 5, 2026
Merged

feat: implement EIP-7951 - precompile for secp256r1 (#31991)#53
eomti-wm merged 2 commits intodevfrom
feat/secp256r1

Conversation

@eomti-wm
Copy link
Contributor

@eomti-wm eomti-wm commented Feb 5, 2026

Summary

Add EIP-7951 precompile for secp256r1 signature verification (P256VERIFY).

Cherry-picked from go-ethereum b3131f00a.

⚠️ Breaking Change

This version is not compatible with v1.0.0. Upgrade is required to sync with the network.

Changes

  • Add p256Verify precompiled contract at address 0x0100
  • Add crypto/secp256r1/verifier.go for signature verification logic
  • Add gas parameters P256VerifyGas in params/protocol_params.go
  • Add test vectors in core/vm/testdata/precompiles/p256Verify.json
  • Bump version to v1.0.1

References

ethereum/EIPs#9833

Based on #27540, #30043

---------

Co-authored-by: Ulaş Erdoğan <uerdogan2001@hotmail.com>
@eomti-wm eomti-wm self-assigned this Feb 5, 2026
@eomti-wm eomti-wm added the enhancement New feature or request label Feb 5, 2026
Copy link
Contributor

@code0xff code0xff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@0xmhha 0xmhha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@egonspace
Copy link
Collaborator

We should include this feature with another hard fork(not Anzeon).

@egonspace egonspace marked this pull request as draft February 5, 2026 06:05
@egonspace egonspace added the WIP label Feb 5, 2026
Copy link
Contributor

@colinkim colinkim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@egonspace egonspace removed the WIP label Feb 5, 2026
@egonspace egonspace marked this pull request as ready for review February 5, 2026 06:11
Copy link
Contributor

@colinkim colinkim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eomti-wm eomti-wm merged commit 259ddea into dev Feb 5, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants