Skip to content

Evaluate RIP-7212 P-256 precompile on Heima (~707k→~3.4k gas/verify; Pectra-independent) #170

@hanwencheng

Description

@hanwencheng

Summary

Evaluate registering a RIP-7212 secp256r1 (P-256) precompile at 0x100 on Heima. It would cut on-chain P-256 verification from ~707k gas → ~3.4k gas (~200×). Not a blocker for #164 (707k is already ~0.018 HEI/verify at 25 gwei), but the single highest-value chain-side optimization for AgentKeys' passkey/UserOp path — and independent of Pectra (RIP-7212 has shipped on many L2s separately from any mainnet hardfork).

Evidence (measured on Heima mainnet, 2026-06-02)

Why it's feasible

Cheaper interim option (no chain work)

Swap our pure-Solidity verifier for the Daimo P256Verifier (~421k gas, ~40% cut) — usable in #164 E2 with zero chain changes.

Action

See also

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/infraDeployment, broker host, scripts/setup-*.sh, AWS / chain provisioningenhancementNew feature or requestresearch

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions