28 releases (6 breaking)

0.6.4 Nov 12, 2024
0.5.4 Oct 23, 2024
0.2.0 Jul 16, 2024
0.1.0 Dec 18, 2023

#609 in Magic Beans

Download history 16713/week @ 2024-07-31 20666/week @ 2024-08-07 20246/week @ 2024-08-14 19952/week @ 2024-08-21 23781/week @ 2024-08-28 28937/week @ 2024-09-04 28016/week @ 2024-09-11 32106/week @ 2024-09-18 32470/week @ 2024-09-25 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 44748/week @ 2024-11-06 38728/week @ 2024-11-13

182,368 downloads per month
Used in 133 crates (32 directly)

MIT/Apache

785KB
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

~4.5–8.5MB
~176K SLoC