39 releases (9 breaking)

0.10.0 Jan 6, 2025
0.9.1 Dec 30, 2024
0.7.0 Nov 28, 2024
0.2.0 Jul 16, 2024
0.1.0 Dec 18, 2023

#3 in #block-header

Download history 40716/week @ 2024-10-02 47236/week @ 2024-10-09 46379/week @ 2024-10-16 49285/week @ 2024-10-23 41074/week @ 2024-10-30 44721/week @ 2024-11-06 38960/week @ 2024-11-13 42878/week @ 2024-11-20 49115/week @ 2024-11-27 51561/week @ 2024-12-04 48846/week @ 2024-12-11 45328/week @ 2024-12-18 29213/week @ 2024-12-25 40589/week @ 2025-01-01 59040/week @ 2025-01-08 46312/week @ 2025-01-15

181,353 downloads per month
Used in 180 crates (34 directly)

MIT/Apache

1MB
10K SLoC

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.

Dependencies

~5.5–10MB
~198K SLoC