Expand description
§rtvm-precompile
Implementations of EVM precompiled contracts.
Modules§
Structs§
- Address
- An Ethereum address, 20 bytes in length.
- Bytes
- Wrapper type around
bytes::Bytes
to support “0x” prefixed hex strings. - HashMap
- A hash map implemented with quadratic probing and SIMD lookup.
- Log
- A log consists of an address, and some log data.
- Precompile
Output - Precompile
With Address - Precompiles
Enums§
- Error
- Precompile
- Precompile and its handlers.
- Precompile
Error - 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 - 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 - Precompile
Result - A precompile operation result.
- Standard
Precompile Fn - Stateful
Precompile Arc - Arc over stateful precompile.
- Stateful
Precompile Box - Box over mutable stateful precompile