P256 precompile for passkey/WebAuthn transaction authentication
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 30/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- rust
調査の方向性
まず crates/ev-precompiles/、crates/ev-revm/、crates/ev-primitives/ の統合ポイントから始め、次に ADR-0003 と RIP-7212 仕様を読みます。トランザクションタイプ 0x76 がどのように検証され、chainspec EvolveConfig の extras がどのように定義されているかを追跡します。完了条件は、P256 precompile、アクティベーション高さの設定、および指定された入力、出力、gas 仕様に一致する P256 署名の 0x76 サポートが実装されていることです。
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- Rust
- スター
- 8
- フォーク
- 9
- 平均マージ
- 2日 13時間
- マージ済み PR(30日)
- 6
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
evstack/ev-reth のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 28/100
evstack/ev-reth の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug team:backend track:services-maintenance
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
cowprotocol/services#4950 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
gitbutlerapp/gitbutler#15998 · コメント 1 件 ·
-
bug triage:deciding
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
open-telemetry/otel-arrow#4132 ·