Crate precompile

Expand description

§revm-precompile

Implementations of EVM precompiled contracts.

Modules§

blake2
bls12_381
bn128
fatal_precompile
hash
identity
kzg_point_evaluation
modexp
secp256k1
secp256r1
EIP-7212 secp256r1 Precompile
utilities

Structs§

Address
An Ethereum address, 20 bytes in length.
Bytes
Wrapper type around [bytes::Bytes] to support “0x” prefixed hex strings.
Log
A log consists of an address, and some log data.
PrecompileOutput
Precompile execution output
PrecompileWithAddress
Precompiles

Enums§

Error
Precompile
Precompile and its handlers.
PrecompileError
PrecompileErrors
Precompile errors.
PrecompileSpecId

Traits§

StatefulPrecompile
Stateful precompile trait. It is used to create a arc precompile Precompile::Stateful.
StatefulPrecompileMut
Mutable stateful precompile trait. It is used to create a boxed precompile in Precompile::StatefulMut.

Functions§

calc_linear_cost_u32
fatal_precompile
Disable kzg precompile. This will return Fatal error on precompile call
u64_to_address
Const function for making an address by concatenating the bytes from two given numbers.

Type Aliases§

B256
32-byte fixed byte-array type.
EnvPrecompileFn
HashMap
A HashMap using the default hasher.
HashSet
A HashSet using the default hasher.
PrecompileResult
A precompile operation result.
StandardPrecompileFn
StatefulPrecompileArc
Arc over stateful precompile.
StatefulPrecompileBox
Box over mutable stateful precompile