Tech/EIPs/#7883
EIP 7883카테고리 · 코어유형 · 표준 트랙상태 · 최종

ModExp Gas Cost Increase

EIP-7883은 ModExp 프리컴파일(EIP-198)의 가스 비용을 인상하여 현재 가격이 실제 계산 비용보다 낮다는 문제를 해결합니다. 이 변경은 네트워크를 잠재적인 서비스 거부 공격으로부터 보호하기 위해 Final 상태로 확정되었습니다.

Background

The ModExp precompile (address 0x05) computes modular exponentiation and has been available since the Byzantium hardfork. Benchmark studies showed that its gas pricing formula underestimates the true CPU cost for many input sizes.

Changes Introduced

EIP-7883 revises the gas cost formula to better reflect execution time across a wide range of modulus and exponent sizes. The new formula raises costs most significantly for large inputs that were previously the cheapest to abuse.

Security Impact

Underpriced precompiles are a known attack vector for slowing down nodes. Correcting ModExp pricing reduces the risk of block-stuffing attacks that exploit cheap heavy computations.

Deployment

The EIP reached Final status and is scheduled for inclusion in a near-term hardfork. Callers relying on ModExp should audit their gas budgets and adjust accordingly.

Ecosystem Considerations

ZK-proof verifiers and cryptographic protocols that call ModExp frequently will see higher on-chain costs. Most use-cases are expected to remain economically viable at the corrected pricing.

공식 EIP 문서open_in_new