Expand description
Re-exported from reth_primitives
.
Modules§
- Ethereum protocol-related constants
- Helper function for calculating Merkle proofs and hashes.
- revm-primitives
- serde_
bincode_ compat serde-bincode-compat
Bincode-compatible serde implementations for commonly used types in Reth. - Commonly used types for static file usage.
- Transaction types.
Macros§
- Macro that defines different variants of a chain specific enum. See
crate::Hardfork
as an example.
Structs§
- An Ethereum account.
- A response to
GetPooledTransactions
that includes blob data, their commitments, and their corresponding proofs. - Ethereum full block.
- A response to
GetBlockBodies
, containing bodies if any bodies were found. - Sealed block with senders recovered from transactions.
- Bytecode for an account.
- Ordered list of a chain hardforks that implement
Hardfork
. - A container for pretty-printing a list of hardforks.
- Represents a forward-compatible ENR entry for including the forkid in a node record via EIP-868. Forward compatibility is achieved via EIP-8.
- Filter that describes the state of blockchain and can be used to check incoming
ForkId
s for compatibility. CRC32
hash of all previous forks starting from genesis block.- A fork identifier as defined by EIP-2124. Serves as the chain compatibility identifier.
- Represents a transition from one fork to another
- A pair of values, one of which is expected and one of which is actual.
- A pair of values, one of which is expected and one of which is actual.
- Describes the current head block.
- Ethereum Block header
- A map of valid
jump
destinations. - A log consists of an address, and some log data.
- An Ethereum event log object.
- A signed pooled transaction with recovered signer.
- Receipt containing result of transaction execution.
Receipt
with calculated bloom filter.Receipt
reference type with calculated bloom filter.- A collection of receipts organized as a two-dimensional vector.
- Reusable decompressor that uses its own internal buffer.
- Sealed Ethereum full block.
- Sealed block with senders recovered from transactions.
- A
Header
that is sealed at a precalculated hash, useSealedHeader::unseal()
if you want to modify header. - Account storage entry.
- Additional fields in the context of a block that contains this transaction.
- Signed transaction.
- Signed transaction with recovered signer.
- Signed transaction without its Hash. Used type for inserting into the DB.
Enums§
- The name of an Ethereum hardfork.
- The condition at which a fork is activated.
- How to filter forks.
- Errors that can occur during header sanity checks.
- Represents error variants that can happen when trying to validate a Transaction
- A response to
GetPooledTransactions
. This can include either a blob transaction, or a non-4844 signed transaction. - Segment of the data that can be moved to static files.
- A raw transaction.
- Transaction Type
- Reason for rejecting provided
ForkId
.
Constants§
- Holesky genesis hash:
0xb5f7f912443c940f21fd611f12828d75b534364ed9e95ca4e307729a4661bde4
- Thread receipt compressor.
- Thread receipt decompressor.
- Thread Transaction compressor.
- Thread Transaction decompressor.
Statics§
- Dev hardforks
- Compression/Decompression dictionary for
Receipt
. - Compression/Decompression dictionary for
Transaction
.
Traits§
- Helper methods for Ethereum forks.
- Generic hardfork trait.
- Generic trait over a set of ordered hardforks
Functions§
- Fn creates receipt [
Compressor
] - Fn creates receipt [
Decompressor
] - Fn creates tx [
Compressor
] - Fn creates tx [
Decompressor
] - Retrieves gas spent by transactions as a vector of tuples (transaction index, gas used).
- Generates a header which is valid with respect to past and future forks. This means, for example, that if the withdrawals root is present, the base fee per gas is also present.
- Compute the logs bloom filter for the given logs.
- Converts a public key into an ethereum address by hashing the encoded public key with keccak256.
- Recovers the address of the sender using secp256k1 pubkey recovery.
- Signs message with the given secret key. Returns the corresponding signature.
- Generates a proptest strategy for constructing an instance of a header which is valid with respect to past and future forks.
Type Aliases§
- Either a transaction hash or number.