Crate eth_types

source ·
Expand description

Ethereum and Evm types used to deserialize responses from web3 / geth.

Re-exports§

Modules§

  • EVM byte code generator
  • Error module for the eth-types crate
  • Evm types needed for parsing instruction sets as well
  • Types needed for generating Ethereum traces
  • Plain keccak256 implementation
  • Collection of utility macros used within this crate.
  • secp256k1 signature types and helper functions.

Macros§

  • Create an Address from a hex string. Panics on invalid input.
  • EVM code macro
  • Triggers a signal that a feature is unimplemented, panics if warn-unimplemented feature is not set
  • Create a Word from a hex string. Panics on invalid input.
  • Create a Word to Word HashMap from pairs of hex strings. Panics on invalid input.

Structs§

  • Access list
  • Access list item
  • The block type returned from RPC calls.
  • Wrapper type around Bytes to deserialize/serialize “0x” prefixed ethereum hex strings
  • Little-endian large integer type 256-bit unsigned integer.
  • Struct used to define the result of eth_getProof call
  • The execution trace type returned by geth RPC debug_trace* methods. Corresponds to ExecutionResult in go-ethereum/internal/ethapi/api.go. The deserialization truncates the memory of each step in struct_logs to the memory size before the expansion, so that it corresponds to the memory before the step is executed.
  • Fixed-size uninterpreted hash type with 20 bytes (160 bits) size.
  • Fixed-size uninterpreted hash type with 32 bytes (256 bits) size.
  • An ECDSA signature
  • Struct used to define the storage proof
  • Details of a signed transaction
  • Little-endian large integer type Unsigned 64-bit integer.
  • Little-endian large integer type 256-bit unsigned integer.
  • Little-endian large integer type 512-bits unsigned integer.

Traits§

  • Trait used to reduce verbosity with the declaration of the [PrimeField] trait and its repr.
  • trait to retrieve general operation itentity element
  • Trait used to convert a type to a Address.
  • Trait uset do convert a scalar value to a 32 byte array in big endian.
  • Trait used to convert a scalar value to a 32 byte array in little endian.
  • Trait used to define types that can be converted to a 256 bit scalar value.
  • Trait used to convert a type to a Word.

Type Aliases§