revm_primitives/
eip7823.rs

1//! EIP-7823 Set upper bounds for MODEXP
2//!
3//! Introduce an upper bound on the inputs of the MODEXP precompile.
4//! This can reduce the number of potential bugs, because the testing surface is not infinite anymore,
5//! and makes it easier to be replaced using EVMMAX.
6
7/// Each of the modexp length inputs (length_of_BASE, length_of_EXPONENT and length_of_MODULUS)
8/// MUST be less than or equal to 8192 bits (1024 bytes).
9pub const INPUT_SIZE_LIMIT: usize = 1024;