Module modexp
Constants§
- BERLIN
- modexpprecompile with BERLIN gas rules.
- BYZANTIUM
- modexpprecompile with BYZANTIUM gas rules.
- OSAKA
- modexpprecompile with OSAKA gas rules.
Functions§
- berlin_gas_ calc 
- Calculate gas cost according to EIP 2565: https://eips.ethereum.org/EIPS/eip-2565
- berlin_run 
- See: https://eips.ethereum.org/EIPS/eip-2565 Gas cost of berlin is modified from byzantium.
- byzantium_gas_ calc 
- Calculate the gas cost for the modexp precompile with BYZANTIUM gas rules.
- byzantium_run 
- See: https://eips.ethereum.org/EIPS/eip-198 See: https://etherscan.io/address/0000000000000000000000000000000000000005
- calculate_iteration_ count 
- Calculate the iteration count for the modexp precompile.
- gas_calc 
- Calculate gas cost.
- osaka_gas_ calc 
- Calculate gas cost according to EIP-7883: https://eips.ethereum.org/EIPS/eip-7883
- osaka_run 
- See: https://eips.ethereum.org/EIPS/eip-7823 Gas cost of berlin is modified from byzantium.
- run_inner 
- Run the modexp precompile.