Skip to content

Reprice ModExp precompile (EIP-7883) #120

Description

@mw2000

Summary

Increase the gas cost of the ModExp precompile (address 0x05). Activates with Fusaka.

Spec

Scope

  • Add Fusaka hardfork + EIP-7883 flag to EEVM.HardforkConfig.
  • Branch EEVM.Precompiles.ModExp gas formula on the flag.
  • Cross-check with EIP-7823 input bounds (separate issue).

Definition of Done

  • ModExp gas formula returns the new cost when Fusaka is active and the legacy cost otherwise.
  • Fusaka ModExp StateTest fixtures pass via the harness.

Parent

Metadata

Metadata

Assignees

No one assigned

    Labels

    eipEIP specification implementationenhancementNew feature or requestgasGas metering and cost rulesprecompilePrecompiled contract implementation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions