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.
- Precompile
Output - Precompile execution output
- Precompile
With Address - Precompiles
Enums§
- Error
- Precompile
- Precompile and its handlers.
- Precompile
Error - Precompile
Errors - Precompile errors.
- Precompile
Spec Id
Traits§
- Stateful
Precompile - Stateful precompile trait. It is used to create a arc precompile Precompile::Stateful.
- Stateful
Precompile Mut - 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.
- EnvPrecompile
Fn - HashMap
- A
HashMap
using the default hasher. - HashSet
- A
HashSet
using the default hasher. - Precompile
Result - A precompile operation result.
- Standard
Precompile Fn - Stateful
Precompile Arc - Arc over stateful precompile.
- Stateful
Precompile Box - Box over mutable stateful precompile