Repository navigation
EIP-7951: Precompile for secp256r1 Curve Support - #31991
Merged
Merged
Conversation
fjl
requested review from
gballet,
jwasinger,
karalabe,
rjl493456442 and
zsfelfoldi
as code owners
June 9, 2025 11:58
fjl
added a commit
that referenced
this pull request
Jun 9, 2025
Thegaram
reviewed
Jun 10, 2025
Comment on lines
30
to
32
Contributor
There was a problem hiding this comment.
Is this check needed? Which part of the EIP does this correspond to?
I believe this check was not added in the RIP version, neither was it present in the implementation deployed in Scroll or OP.
Contributor
There was a problem hiding this comment.
This seems to be the answer: ethereum-optimism/op-geth#168 (comment)
Member
There was a problem hiding this comment.
Yeah, I think we can get rid of it,
for more context, https://github.com/golang/go/blob/master/src/crypto/elliptic/nistec.go#L129-L134
Contributor
|
@alexb5dh I changed the title by mistake. Have corrected it now. This reflects EIP-7951 |
ulerdogan
reviewed
Jun 12, 2025
Comment on lines
1
to
9
Contributor
Contributor
Author
There was a problem hiding this comment.
Thanks, I have updated the test vectors.
Contributor
Author
|
@MariusVanDerWijden PTAL |
JonathanOppenheimer
added a commit
to ava-labs/libevm
that referenced
this pull request
Aug 11, 2025
ethereum/EIPs#9833 Based on ethereum#27540, ethereum#30043 --------- Co-authored-by: Ulaş Erdoğan <uerdogan2001@hotmail.com>
JonathanOppenheimer
added a commit
to ava-labs/libevm
that referenced
this pull request
Aug 12, 2025
ethereum/EIPs#9833 Based on ethereum#27540, ethereum#30043 --------- Co-authored-by: Ulaş Erdoğan <uerdogan2001@hotmail.com>
JonathanOppenheimer
added a commit
to ava-labs/libevm
that referenced
this pull request
Aug 12, 2025
ethereum/EIPs#9833 Based on ethereum#27540, ethereum#30043 --------- Co-authored-by: Ulaş Erdoğan <uerdogan2001@hotmail.com>
JonathanOppenheimer
added a commit
to ava-labs/libevm
that referenced
this pull request
Aug 12, 2025
ethereum/EIPs#9833 Based on ethereum#27540, ethereum#30043 --------- Co-authored-by: Ulaş Erdoğan <uerdogan2001@hotmail.com>
JonathanOppenheimer
pushed a commit
to ava-labs/libevm
that referenced
this pull request
Aug 13, 2025
ethereum/EIPs#9833 Based on ethereum#27540, ethereum#30043 --------- Co-authored-by: Ulaş Erdoğan <uerdogan2001@hotmail.com>
JonathanOppenheimer
pushed a commit
to ava-labs/libevm
that referenced
this pull request
Aug 13, 2025
ethereum/EIPs#9833 Based on ethereum#27540, ethereum#30043 --------- Co-authored-by: Ulaş Erdoğan <uerdogan2001@hotmail.com>
howjmay
pushed a commit
to iotaledger/go-ethereum
that referenced
this pull request
Aug 27, 2025
ethereum/EIPs#9833 Based on ethereum#27540, ethereum#30043 --------- Co-authored-by: Ulaş Erdoğan <uerdogan2001@hotmail.com>
gballet
pushed a commit
to gballet/go-ethereum
that referenced
this pull request
Sep 11, 2025
ethereum/EIPs#9833 Based on ethereum#27540, ethereum#30043 --------- Co-authored-by: Ulaş Erdoğan <uerdogan2001@hotmail.com>
ARR4N
added a commit
to ava-labs/libevm
that referenced
this pull request
Oct 18, 2025
…eum#31991)" This reverts commit 9e4c147.
gzliudan
added a commit
to gzliudan/XDPoSChain
that referenced
this pull request
Sep 28, 2026
…thereum#31991, close XinFinOrg#2690 The Osaka precompile set stopped at 0x09, so secp256r1 signature verification was not available: contracts relying on WebAuthn or passkey style verification cannot be deployed once Osaka gets scheduled. Ported from geth b3131f0 (ethereum#31991). The verifier only uses crypto/ecdsa and crypto/elliptic, so no dependency is added. The precompile is registered at 0x100 in PrecompiledContractsOsaka and the 782 official test vectors are included. geth's Cacheable and NormalizeInput methods and the exported PrecompiledContractsP256Verify set are left out: this fork's PrecompiledContract interface has no caller for them. Fixes XinFinOrg#2690
gzliudan
added a commit
to gzliudan/XDPoSChain
that referenced
this pull request
Sep 28, 2026
…thereum#31991, close XinFinOrg#2690 The Osaka precompile set stopped at 0x09, so secp256r1 signature verification was not available: contracts relying on WebAuthn or passkey style verification cannot be deployed once Osaka gets scheduled. Ported from geth b3131f0 (ethereum#31991). The verifier only uses crypto/ecdsa and crypto/elliptic, so no dependency is added. The precompile is registered at 0x100 in PrecompiledContractsOsaka and the 782 official test vectors are included. geth's Cacheable and NormalizeInput methods and the exported PrecompiledContractsP256Verify set are left out: this fork's PrecompiledContract interface has no caller for them. Fixes XinFinOrg#2690
gzliudan
added a commit
to gzliudan/XDPoSChain
that referenced
this pull request
Sep 28, 2026
…thereum#31991, close XinFinOrg#2690 The Osaka precompile set stopped at 0x09, so secp256r1 signature verification was not available: contracts relying on WebAuthn or passkey style verification cannot be deployed once Osaka gets scheduled. Ported from geth b3131f0 (ethereum#31991). The verifier only uses crypto/ecdsa and crypto/elliptic, so no dependency is added. The precompile is registered at 0x100 in PrecompiledContractsOsaka and the 782 official test vectors are included. geth's Cacheable and NormalizeInput methods and the exported PrecompiledContractsP256Verify set are left out: this fork's PrecompiledContract interface has no caller for them. Fixes XinFinOrg#2690
gzliudan
added a commit
to gzliudan/XDPoSChain
that referenced
this pull request
Oct 1, 2026
…thereum#31991, close XinFinOrg#2690 The Osaka precompile set stopped at 0x09, so secp256r1 signature verification was not available: contracts relying on WebAuthn or passkey style verification cannot be deployed once Osaka gets scheduled. Ported from geth b3131f0 (ethereum#31991). The verifier only uses crypto/ecdsa and crypto/elliptic, so no dependency is added. The precompile is registered at 0x100 in PrecompiledContractsOsaka and the 782 official test vectors are included. geth's Cacheable and NormalizeInput methods and the exported PrecompiledContractsP256Verify set are left out: this fork's PrecompiledContract interface has no caller for them. Fixes XinFinOrg#2690
gzliudan
added a commit
to gzliudan/XDPoSChain
that referenced
this pull request
Oct 1, 2026
…thereum#31991, close XinFinOrg#2690 The Osaka precompile set stopped at 0x09, so secp256r1 signature verification was not available: contracts relying on WebAuthn or passkey style verification cannot be deployed once Osaka gets scheduled. Ported from geth b3131f0 (ethereum#31991). The verifier only uses crypto/ecdsa and crypto/elliptic, so no dependency is added. The precompile is registered at 0x100 in PrecompiledContractsOsaka and the 782 official test vectors are included. geth's Cacheable and NormalizeInput methods and the exported PrecompiledContractsP256Verify set are left out: this fork's PrecompiledContract interface has no caller for them. Fixes XinFinOrg#2690
gzliudan
added a commit
to gzliudan/XDPoSChain
that referenced
this pull request
Oct 1, 2026
…thereum#31991, close XinFinOrg#2690 The Osaka precompile set stopped at 0x09, so secp256r1 signature verification was not available: contracts relying on WebAuthn or passkey style verification cannot be deployed once Osaka gets scheduled. Ported from geth b3131f0 (ethereum#31991). The verifier only uses crypto/ecdsa and crypto/elliptic, so no dependency is added. The precompile is registered at 0x100 in PrecompiledContractsOsaka and the 782 official test vectors are included. geth's Cacheable and NormalizeInput methods and the exported PrecompiledContractsP256Verify set are left out: this fork's PrecompiledContract interface has no caller for them. Fixes XinFinOrg#2690
gzliudan
added a commit
to gzliudan/XDPoSChain
that referenced
this pull request
Oct 2, 2026
…thereum#31991, part of XinFinOrg#2690 The Osaka precompile set stopped at 0x09, so secp256r1 signature verification was not available: contracts relying on WebAuthn or passkey style verification cannot be deployed once Osaka gets scheduled. Ported from geth b3131f0 (ethereum#31991). The verifier only uses crypto/ecdsa and crypto/elliptic, so no dependency is added. The precompile is registered at 0x100 in PrecompiledContractsOsaka and the 782 official test vectors are included. geth's Cacheable and NormalizeInput methods and the exported PrecompiledContractsP256Verify set are left out: this fork's PrecompiledContract interface has no caller for them. Part of XinFinOrg#2690
gzliudan
added a commit
to gzliudan/XDPoSChain
that referenced
this pull request
Oct 3, 2026
…thereum#31991, part of XinFinOrg#2690 The Osaka precompile set stopped at 0x09, so secp256r1 signature verification was not available: contracts relying on WebAuthn or passkey style verification cannot be deployed once Osaka gets scheduled. Ported from geth b3131f0 (ethereum#31991). The verifier only uses crypto/ecdsa and crypto/elliptic, so no dependency is added. The precompile is registered at 0x100 in PrecompiledContractsOsaka and the 782 official test vectors are included. geth's Cacheable and NormalizeInput methods and the exported PrecompiledContractsP256Verify set are left out: this fork's PrecompiledContract interface has no caller for them. Part of XinFinOrg#2690
gzliudan
added a commit
to gzliudan/XDPoSChain
that referenced
this pull request
Oct 3, 2026
…thereum#31991, part of XinFinOrg#2690 The Osaka precompile set had no secp256r1 verifier, so contracts relying on WebAuthn or passkey style verification could not be deployed once Osaka gets scheduled. EIP-7951 places it at 0x100. Ported from geth b3131f0 (ethereum#31991). The verifier only uses crypto/ecdsa and crypto/elliptic, so no dependency is added. The precompile is registered at 0x100 in PrecompiledContractsOsaka and the 782 official test vectors are included. geth's Cacheable and NormalizeInput methods and the exported PrecompiledContractsP256Verify set are left out: this fork's PrecompiledContract interface has no caller for them. Part of XinFinOrg#2690
gzliudan
added a commit
to gzliudan/XDPoSChain
that referenced
this pull request
Oct 3, 2026
…thereum#31991, part of XinFinOrg#2690 The Osaka precompile set had no secp256r1 verifier, so contracts relying on WebAuthn or passkey style verification could not be deployed once Osaka gets scheduled. EIP-7951 places it at 0x100. Ported from geth b3131f0 (ethereum#31991). The verifier only uses crypto/ecdsa and crypto/elliptic, so no dependency is added. The precompile is registered at 0x100 in PrecompiledContractsOsaka and the 782 official test vectors are included. geth's Cacheable and NormalizeInput methods and the exported PrecompiledContractsP256Verify set are left out: this fork's PrecompiledContract interface has no caller for them. Part of XinFinOrg#2690
gzliudan
added a commit
to gzliudan/XDPoSChain
that referenced
this pull request
Oct 3, 2026
…thereum#31991, part of XinFinOrg#2690 The Osaka precompile set had no secp256r1 verifier, so contracts relying on WebAuthn or passkey style verification could not be deployed once Osaka gets scheduled. EIP-7951 places it at 0x100. Ported from geth b3131f0 (ethereum#31991). The verifier only uses crypto/ecdsa and crypto/elliptic, so no dependency is added. The precompile is registered at 0x100 in PrecompiledContractsOsaka and the 782 official test vectors are included. geth's Cacheable and NormalizeInput methods and the exported PrecompiledContractsP256Verify set are left out: this fork's PrecompiledContract interface has no caller for them. The p256Verify block itself - its doc comments, the package-level input length constant and Name - is kept verbatim from upstream master, which normalized it in 98a0080 (ethereum#35473); the precompile caching that same commit introduced is the part left out above. Part of XinFinOrg#2690
gzliudan
added a commit
to XinFinOrg/XDPoSChain
that referenced
this pull request
Oct 3, 2026
…thereum#31991, part of #2690 (#2694) The Osaka precompile set had no secp256r1 verifier, so contracts relying on WebAuthn or passkey style verification could not be deployed once Osaka gets scheduled. EIP-7951 places it at 0x100. Ported from geth b3131f0 (ethereum#31991). The verifier only uses crypto/ecdsa and crypto/elliptic, so no dependency is added. The precompile is registered at 0x100 in PrecompiledContractsOsaka and the 782 official test vectors are included. geth's Cacheable and NormalizeInput methods and the exported PrecompiledContractsP256Verify set are left out: this fork's PrecompiledContract interface has no caller for them. The p256Verify block itself - its doc comments, the package-level input length constant and Name - is kept verbatim from upstream master, which normalized it in 98a0080 (ethereum#35473); the precompile caching that same commit introduced is the part left out above. Part of #2690
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ethereum/EIPs#9833
Based on #27540, #30043