50 releases (13 breaking)

new 0.14.0 Apr 9, 2025
0.13.0 Mar 28, 2025
0.12.6 Mar 18, 2025
0.9.1 Dec 30, 2024
0.1.0 Dec 18, 2023

#750 in Magic Beans

Download history 30039/week @ 2024-12-22 33575/week @ 2024-12-29 56689/week @ 2025-01-05 57684/week @ 2025-01-12 56949/week @ 2025-01-19 65884/week @ 2025-01-26 67189/week @ 2025-02-02 70594/week @ 2025-02-09 68618/week @ 2025-02-16 69603/week @ 2025-02-23 66770/week @ 2025-03-02 79390/week @ 2025-03-09 88991/week @ 2025-03-16 82815/week @ 2025-03-23 79081/week @ 2025-03-30 85776/week @ 2025-04-06

341,833 downloads per month
Used in 257 crates (43 directly)

MIT/Apache

8MB
12K 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

~6–11MB
~222K SLoC