Re-exportsยง
use evm2::interpreter::gas::CALL_STIPEND;๐use super::*;๐
Constantsยง
- SECP256
K1_ ๐ORDER - Order of the secp256k1 curve, the exclusive bound of a valid signature scalar.
Functionsยง
- active_
precompiles ๐ - Returns the canonical precompiles active under
spec_id. - ecrecover_
signature_ ๐well_ formed - Returns whether a 128-byte ECRECOVER input is a well-formed signature:
vis 27 or 28 andrandsare in[1, n). The precompile returns no data otherwise. - execute_
precompile ๐ - Executes a canonical precompile on concrete input with at most
gasgas. - execute_
symbolic_ ๐precompile - is_
precompile_ ๐for_ spec - Returns whether
addressis a canonical precompile active underspec_id. - modexp_
gas ๐ - Returns the gas the modexp precompile for
spec_idcharges for these lengths and leading exponent word, as EIP-198, EIP-2565 (Berlin) and EIP-7883 (Osaka) define it. - precompile_
call_ ๐gas - Returns the most gas a
gasleft()call gives a precompile in a transaction withgas_limitgas: 63/64 of the gas left (EIP-150), plus the value transfer stipend when it sends value. - precompile_
gas_ ๐fits - Returns whether a precompile whose cost lies between
min_costandmax_costfits ingas, orNonewhen that depends on symbolic input. - precompile_
number ๐ - precompile_
number_ ๐for_ spec - symbolic_
fixed_ ๐len_ precompile_ output - symbolic_
input_ ๐word_ range - Returns the smallest and largest big-endian values of the
leninput bytes atoffset, taking each symbolic byte as0x00and0xffand each byte pastinput_lenas zero. - symbolic_
modexp_ ๐precompile