fn modexp_gas(
spec_id: SpecId,
base_len: u64,
exp_len: u64,
mod_len: u64,
exp_highp: &U256,
) -> u64Expand description
Returns the gas the modexp precompile for spec_id charges for these lengths and leading
exponent word, as EIP-198, EIP-2565 (Berlin) and EIP-7883 (Osaka) define it.
This mirrors evm2’s modexp gas calculation, which evm2 does not export.