Ethereum Protocol Fellowship (EPF) Cohort 7 — Applications open until May 13
All EIPs
EIP-7883 Final

ModExp Gas Cost Increase

Authors: , ,

Canonical data: /latest/eips/7883.json

Increases cost of ModExp precompile

Timeline

Included
EIP Created Feb 11, 2025

Key Benefits

  • Fixes underpriced ModExp operations that cost less than simpler precompiles
  • Ensures ModExp pricing reflects actual computational cost
  • Prevents potential DoS from cheap complex operations
  • Aligns gas costs with performance benchmarks

Trade-offs & Considerations

No trade-offs documented yet.

Stakeholder Impact

End Users

Most users unaffected. Applications using ModExp with large inputs (>32 bytes) will see increased gas costs.

Application Developers

Applications using RSA verification, large modular exponentiation, or cryptographic protocols with big numbers may need to optimize or budget for higher costs.

Wallet Developers

No impact as wallets typically don't use ModExp precompile directly.

Tooling / Infrastructure

Gas estimation and fee calculation tools need updates for the new ModExp pricing formula.

Layer 2s

L2s using ModExp precompile for cryptographic operations will see increased costs for large input operations.

Stakers & Node Operators

Better compensation alignment for computational work, reduced risk of DoS attacks through underpriced operations.

CL Client Developers

No direct impact on consensus layer operations as this affects execution layer precompile pricing.

EL Client Developers

Need to implement the updated ModExp pricing formula with new minimum costs and scaling factors for large inputs.

North Star Goal Alignment

  • Scale L1: Improves network economic sustainability by ensuring cryptographic precompiles are properly priced, preventing potential DoS vectors from underpriced operations.