Expand description
§revm-primitives
EVM primitive types.
Re-exports§
pub use alloy_primitives;
pub use alloy_primitives::bytes;
pub use alloy_primitives::hex;
pub use alloy_primitives::hex_literal;
pub use alloy_primitives::ruint;
Modules§
- A hash map implemented with quadratic probing and SIMD lookup.
- A hash set implemented as a
HashMap
where the value is()
. - Re-exports of map types and utilities.
Macros§
- Converts a sequence of string literals containing hex-encoded data into a new
Address
at compile time. - Converts a sequence of string literals containing hex-encoded data into a new
B256
at compile time. - Converts a sequence of string literals containing hex-encoded data into a new
Bytes
at compile time. - Converts a sequence of string literals containing hex-encoded data into a new
FixedBytes
at compile time. - Macro for converting sequence of string literals containing hex-encoded data into an array of bytes.
Structs§
- An Ethereum address, 20 bytes in length.
- Wrapper type around [
bytes::Bytes
] to support “0x” prefixed hex strings. - A byte array of fixed length (
[u8; N]
). - A log consists of an address, and some log data.
- An Ethereum event log object.
Enums§
- The
to
field of a transaction. Either a target address, or empty for a contract creation.
Constants§
- EIP-2935: Serve historical block hashes from state
- EIP-2935: Serve historical block hashes from state
- Number of block hashes that EVM can access in the past (pre-Prague).
- The Keccak-256 hash of the empty string
""
. - The address of precompile 3, which is handled specially in a few places.
Functions§
- Simple interface to the
Keccak-256
hash function.
Type Aliases§
- 32-byte fixed byte-array type.
- A
HashMap
using the default hasher. - A
HashSet
using the default hasher. - 256-bit [signed integer type][Signed], consisting of 4, 64-bit limbs.
- 256-bit [unsigned integer type][Uint], consisting of 4, 64-bit limbs.