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::ruint;
Modules§
- hash_
map - A hash map implemented with quadratic probing and SIMD lookup.
- hash_
set - A hash set implemented as a
HashMap
where the value is()
. - map
- Re-exports of map types and utilities.
Macros§
- address
- Converts a sequence of string literals containing hex-encoded data
into a new
Address
at compile time. - b256
- Converts a sequence of string literals containing hex-encoded data
into a new
B256
at compile time. - bytes
- Converts a sequence of string literals containing hex-encoded data into a
new
Bytes
at compile time. - fixed_
bytes - Converts a sequence of string literals containing hex-encoded data
into a new
FixedBytes
at compile time. - hex
- Macro for converting sequence of string literals containing hex-encoded data into an array of bytes.
Structs§
- Address
- An Ethereum address, 20 bytes in length.
- Bytes
- Wrapper type around [
bytes::Bytes
] to support “0x” prefixed hex strings. - Fixed
Bytes - A byte array of fixed length (
[u8; N]
). - Log
- A log consists of an address, and some log data.
- LogData
- An Ethereum event log object.
Enums§
- TxKind
- The
to
field of a transaction. Either a target address, or empty for a contract creation.
Constants§
- BLOCKHASH_
SERVE_ WINDOW - EIP-2935: Serve historical block hashes from state
- BLOCKHASH_
STORAGE_ ADDRESS - EIP-2935: Serve historical block hashes from state
- BLOCK_
HASH_ HISTORY - Number of block hashes that EVM can access in the past (pre-Prague)
- KECCAK_
EMPTY - The Keccak-256 hash of the empty string
""
. - PRECOMPIL
E3 - The address of precompile 3, which is handled specially in a few places
Functions§
- keccak256
- Simple interface to the
Keccak-256
hash function.
Type Aliases§
- B256
- 32-byte fixed byte-array type.
- HashMap
- A
HashMap
using the default hasher. - HashSet
- A
HashSet
using the default hasher. - I128
- 128-bit [signed integer type][Signed], consisting of 2, 64-bit limbs.
- I256
- 256-bit [signed integer type][Signed], consisting of 4, 64-bit limbs.
- U128
- 128-bit [unsigned integer type][Uint], consisting of 2, 64-bit limbs.
- U256
- 256-bit [unsigned integer type][Uint], consisting of 4, 64-bit limbs.