Skip to content

Add P256VERIFY precompile (EIP-7951) #121

Description

@mw2000

Summary

Add a precompile for secp256r1 (P-256) signature verification. Activates with Fusaka.

Spec

Scope

  • Add Fusaka hardfork + EIP-7951 flag to EEVM.HardforkConfig.
  • Implement EEVM.Precompiles.P256Verify at the assigned address (0x100).
  • Wire it into the precompile dispatcher behind the flag.
  • Likely needs a NIF or pure-Elixir secp256r1 implementation.

Definition of Done

  • Returns a 32-byte 0x...01 for valid signatures and empty output for invalid ones.
  • Fusaka P256VERIFY StateTest fixtures pass.

Parent

Metadata

Metadata

Assignees

No one assigned

    Labels

    eipEIP specification implementationenhancementNew feature or requestprecompilePrecompiled contract implementation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions