Structs§
- G1
- G2
- Precompile
- Precompile
Cache - Per-block cache for precompile results shared between warmer and executor.
Constants§
- BLAKE2F
- BLAK
E2F_ ELEMENT_ SIZE - BLS12_
381_ G1_ MSM_ PAIR_ LENGTH - BLS12_
381_ G2_ MSM_ PAIR_ LENGTH - BLS12_
381_ PAIRING_ CHECK_ PAIR_ LENGTH - BLS12_
G1ADD - BLS12_
G1MSM - BLS12_
G2ADD - BLS12_
G2MSM - BLS12_
MAP_ FP2_ TO_ G2 - BLS12_
MAP_ FP_ TO_ G1 - BLS12_
PAIRING_ CHECK - ECADD
- ECMUL
- ECPAIRING
- ECRECOVER
- FIELD_
ELEMENT_ WITHOUT_ PADDING_ LENGTH - G1_
POINT_ AT_ INFINITY - G2_
POINT_ AT_ INFINITY - IDENTITY
- MODEXP
- P256VERIFY
- PADDED_
FIELD_ ELEMENT_ SIZE_ IN_ BYTES - POINT_
EVALUATION - PRECOMPILES
- RIPEMD_
160 - SHA2_
256 - SIZE_
PRECOMPILES_ CANCUN - SIZE_
PRECOMPILES_ PRAGUE - SIZE_
PRECOMPILES_ PRE_ CANCUN
Functions§
- blake2f
- Returns the result of Blake2 hashing algorithm given a certain parameters from the calldata.
- bls12_
g1add - bls12_
g1msm - bls12_
g2add - bls12_
g2msm - bls12_
map_ fp2_ to_ g2 - bls12_
map_ fp_ to_ g1 - bls12_
pairing_ check - ecadd
- Makes a point addition on the elliptic curve ‘alt_bn128’
- ecmul
- Makes a scalar multiplication on the elliptic curve ‘alt_bn128’
- ecpairing
- Performs a bilinear pairing on points on the elliptic curve ‘alt_bn128’, returns 1 on success and 0 on failure
- ecrecover
- ECRECOVER precompile.
- execute_
precompile - identity
- Returns the calldata received
- increase_
left_ pad - If the result size is less than needed, pads left with zeros.
- is_
precompile - modexp
- Returns the result of the module-exponentiation operation
- p_
256_ verify - Signature verification in the “secp256r1” elliptic curve
If the verification succeeds, returns 1 in a 32-bit big-endian format.
If the verification fails, returns an empty
Bytesobject. Implemented following https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7951.md - precompiles_
for_ fork - ripemd_
160 - Returns the calldata hashed by ripemd-160 algorithm, padded by zeros at left
- sha2_
256 - Returns the calldata hashed by sha2-256 algorithm