Crate alloy_consensus

source ·
Expand description

§alloy-consensus

Ethereum consensus interface.

This crate contains constants, types, and functions for implementing Ethereum EL consensus and communication. This includes headers, blocks, transactions, EIP-2718 envelopes, EIP-2930, EIP-4844, and more.

In general a type belongs in this crate if it is committed to in the EL block header. This includes:

  • transactions
  • blocks
  • headers
  • receipts
  • EIP-2718 envelopes.

§Provenance

Much of this code was ported from reth-primitives as part of ongoing alloy migrations.

Re-exports§

Modules§

Structs§

Enums§

Constants§

Traits§

  • Sealable objects.
  • A strategy for coding and decoding data into sidecars. Coder instances are responsible for encoding and decoding data into and from the sidecar. They are called by the SidecarBuilder during the ingest, take, and (if c_kzg feature enabled) build methods.
  • Receipt is the result of a transaction execution.

Type Aliases§

  • A Blob serialized as 0x-prefixed hex string
  • A commitment/proof serialized as 0x-prefixed hex string