P256 precompile for passkey/WebAuthn transaction authentication
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 30/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- rust
- Domain
- authentication, blockchain, cryptography, security
Research direction
Start with the integration points in crates/ev-precompiles/, crates/ev-revm/, and crates/ev-primitives/, then read ADR-0003 and the RIP-7212 specification. Trace how the 0x76 transaction type is validated and how chainspec EvolveConfig extras are defined. Done means a P256 precompile, activation-height configuration, and 0x76 support for P256 signatures matching the stated input, output, and gas specification.
Written by the indexing model from the issue text.
Description
Summary
Add a P256 (secp256r1) signature verification precompile so that end users can authenticate transactions using device passkeys (FaceID, fingerprint, hardware security keys) via WebAuthn, instead of managing secp256k1 private keys.
Motivation
Private key management is the single biggest UX barrier for consumer-facing blockchain applications. Users lose keys, get phished, and struggle with seed phrases. Modern devices universally support WebAuthn/FIDO2 passkeys backed by the P256 curve (secp256r1), which is different from Ethereum's secp256k1.
Tempo has validated this pattern: their 0x76 transaction type supports passkey-based biometric authentication (FaceID, fingerprint) as a first-class signing method. Since ev-reth already implements the 0x76 transaction type (ADR-0003), adding P256 verification is the natural next step to unlock passkey auth.
Customer impact:
- Users sign transactions with biometrics -- no seed phrases, no browser extensions
- Mobile-first UX becomes possible without smart contract wallets
- Reduces key management liability for enterprise customers
- Compatible with existing WebAuthn infrastructure (Apple, Google, Microsoft passkey providers)
Design
Precompile specification
- Address: Fixed system address (e.g.,
0x0100or a higher address to avoid EIP conflicts) - Input:
(hash: bytes32, r: bytes32, s: bytes32, x: bytes32, y: bytes32)-- the message hash and P256 public key coordinates - Output:
(success: bytes32)--1if signature is valid,0otherwise - Gas cost: ~3,450 gas (per RIP-7212 / EIP-7212 benchmarks)
Integration points
crates/ev-precompiles/: Implement P256 verification precompile using a well-audited Rust P256 library (p256crate from RustCrypto)crates/ev-revm/: Register the precompile in the custom EVM configuration, activated via chainspec heightcrates/ev-primitives/: ExtendEvNodeTransaction(0x76) signature validation to accept P256 signatures as an alternative to secp256k1- Chainspec: Add
p256_precompile_activation_heighttoEvolveConfigextras
Transaction flow with passkeys
- User authenticates with device biometric (FaceID/fingerprint)
- Device signs the transaction hash using its P256 private key via WebAuthn
- Transaction includes P256 signature instead of secp256k1
- EVM handler verifies signature via the P256 precompile
tx.originmaps to the user's P256-derived address
Prior art
- RIP-7212: Precompile for secp256r1 -- Rollup improvement proposal, already deployed on Base, Optimism, Arbitrum, Polygon
- EIP-7212 -- L1 proposal (same spec)
- Tempo: passkey authentication
- RustCrypto p256 crate
- ADR-0003 -- ev-reth's 0x76 transaction type
- Dominant language
- Rust
- Stars
- 8
- Forks
- 9
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 4
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from evstack/ev-reth
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 5/5 Over a week Newbie friendliness 28/100
Similar issues
-
Browser (wasm) relay client cannot connect to relays whose URL has a trailing-dot FQDN hostname Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
n0-computer/iroh#4550 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
paritytech/zombienet-sdk#591 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
farion1231/cc-switch#7638 · 1 comment ·
-
onnx-ir re-exports ModelProto and GraphProto but not NodeProto, AttributeProto and AttributeType Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100