Introduction
Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.
I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.
I also build and publish a variety of tools, libraries, and open-source projects.
This article examines EIP-160, which revises the gas cost of the Ethereum EXP instruction.
The following specification is the basis for this explanation.
For other Ethereum improvement proposals, see the following page.
Parameters
FORK_BLKNUM2,675,000
CHAIN_ID1
Specification
When block.number >= FORK_BLKNUM, the proposal changes the gas cost of EXP, the exponentiation instruction.
Specifically, the cost increases from 10 gas plus 10 gas per byte of the exponent to 10 gas plus 50 gas per byte of the exponent.
Here, block.number identifies a block in the blockchain. Blocks are arranged in sequence and each has a block number.
FORK_BLKNUM specifies the block at which a network upgrade takes effect. Once that block is reached, the network follows the new rules.
The proposal addresses an imbalance between the previous gas cost of exponentiation and the computational resources required to execute it. Exponentiation consumes network resources, and raising its gas cost better reflects that burden.
The goal is to reduce the risk of excessive network load and improve network security and efficiency.
For more information about EXP, see the following article.
Additional Considerations
The proposal cites benchmark results indicating that the previous cost of EXP was approximately four to eight times too low.
Ethereum measures the computational cost of instructions using gas. Gas costs account for the resource burden of executing transactions.
A benchmark measures the performance of a system or program. In this case, benchmark results indicated that the gas charged for exponentiation did not adequately reflect its actual computational resource requirements.
This mismatch can affect network security and efficiency. Underpriced instructions may be used excessively, increasing network load and creating security risks. The benchmark results therefore support recalibrating the gas cost of EXP.
Reference
Citation
Vitalik Buterin (@vbuterin), "EIP-160: EXP cost increase," Ethereum Improvement Proposals, no. 160, October 2016. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-160.
Conclusion
EIP-160 raises the per-byte exponent gas charge for EXP to better reflect its computational cost.


