Skip to main content

Overview

Address: 0x0000000000000000000000000000000000000100 Introduced: Osaka (Fusaka, December 3, 2025) EIP: EIP-7951 P256VERIFY verifies an ECDSA signature over the secp256r1 (NIST P-256) curve. P-256 is the curve used by passkeys (WebAuthn), Apple Secure Enclave, Android Keystore, and most hardware security modules. Before Osaka, verifying a P-256 signature in Solidity cost several hundred thousand gas. EIP-7951 uses the same address and interface as RIP-7212, which many L2s already deploy. Contracts written against RIP-7212 run unchanged on L1 after Osaka. The L1 gas cost differs: 6,900 instead of RIP-7212’s 3,450.

Gas Cost

Fixed: 6900 gas The cost is the same for valid and invalid inputs. A call with gasLimit < 6900 fails with out of gas.

Input Format

Input is exactly 160 bytes:

Output Format

The call itself succeeds in both cases and charges 6,900 gas. Callers must check the output length: an empty return means “not verified”, not “reverted”. The precompile returns empty output when any of these hold:
  • Input length is not 160 bytes
  • r or s is 0 or >= n
  • qx or qy is >= p
  • The public key is the point at infinity (0, 0)
  • The public key is not on the curve y² = x³ + ax + b (mod p)
  • The signature does not verify

High-s signatures

P256VERIFY accepts signatures with s > n/2. Unlike ECRECOVER on secp256k1 (EIP-2), it applies no low-s rule. WebAuthn authenticators produce high-s signatures, so a low-s check would reject valid passkey assertions. If your protocol needs non-malleable signatures, enforce s <= n/2 in the calling contract.

Curve Parameters

Usage

The precompile exists only from Osaka on. Check availability before calling:

Off-chain verification

To verify a P-256 signature outside the EVM, use the P256 module directly:

References