Crate reth_primitives

source
Expand description

Commonly used types in Reth.

This crate contains Ethereum primitive types and helper functions.

§Feature Flags

  • alloy-compat: Adds compatibility conversions for certain alloy types.
  • arbitrary: Adds proptest and arbitrary support for primitive types.
  • test-utils: Export utilities for testing
  • reth-codec: Enables db codec support for reth types including zstd compression for certain types.

Re-exports§

Modules§

  • The Arbitrary trait crate.
  • Ethereum protocol-related constants
  • Helper function for calculating Merkle proofs and hashes.
  • serde_bincode_compatserde-bincode-compat
    Bincode-compatible serde implementations for commonly used types in Reth.
  • Transaction types.

Macros§

Structs§

  • An Ethereum account.
  • This represents a set of blobs, and its corresponding commitments and 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 ForkIds 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.
  • 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.
  • A list of EIP-7685 requests.
  • Reusable decompressor that uses its own internal buffer.
  • A block hash which may have a boolean requireCanonical field.
  • Sealed Ethereum full block.
  • Sealed block with senders recovered from transactions.
  • A Header that is sealed at a precalculated hash, use SealedHeader::unseal() if you want to modify header.
  • An Ethereum ECDSA signature.
  • Account storage entry.
  • Withdrawal represents a validator withdrawal from the consensus layer.
  • Represents a collection of Withdrawals.

Enums§

Constants§

Statics§

Traits§

Functions§

Type Aliases§