29 releases (7 breaking)

new 0.7.0 Nov 28, 2024
0.5.4 Oct 23, 2024
0.2.0 Jul 16, 2024
0.1.0 Dec 18, 2023

#453 in Magic Beans

Download history 21497/week @ 2024-08-08 19846/week @ 2024-08-15 20897/week @ 2024-08-22 24167/week @ 2024-08-29 28880/week @ 2024-09-05 29902/week @ 2024-09-12 31664/week @ 2024-09-19 32388/week @ 2024-09-26 43884/week @ 2024-10-03 45890/week @ 2024-10-10 47854/week @ 2024-10-17 47499/week @ 2024-10-24 41543/week @ 2024-10-31 44608/week @ 2024-11-07 38306/week @ 2024-11-14 43843/week @ 2024-11-21

175,962 downloads per month
Used in 141 crates (32 directly)

MIT/Apache

795KB
9K 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