revm_primitives/eip7823.rs
1//! EIP-7823: Set Upper Bounds for MODEXP
2//!
3//! Introduces an upper bound on the inputs of the MODEXP precompile.
4//! This reduces the number of potential bugs and makes it easier to replace using EVMMAX.
5
6/// Each of the modexp length inputs (length_of_BASE, length_of_EXPONENT and length_of_MODULUS)
7/// MUST be less than or equal to 8192 bits (1024 bytes).
8pub const INPUT_SIZE_LIMIT: usize = 1024;