Module reth::primitives

source ·
Expand description

Re-exported from reth_primitives.

Modules§

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 Bloom at compile time.
  • Converts a sequence of string literals containing hex-encoded data into a new Bytes at compile time.
  • Macro that defines different variants of a chain specific enum. See crate::Hardfork as an example.
  • Macro for converting sequence of string literals containing hex-encoded data into an array of bytes.

Structs§

Enums§

Constants§

Statics§

Traits§

Functions§

  • Hash a message according to EIP-191 (version 0x01).
  • Formats the given number of Wei as an Ether amount.
  • 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.
  • Simple interface to the Keccak-256 hash function.
  • Calculate receipt logs bloom.
  • 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§