14 unstable releases (3 breaking)

new 0.3.5 Sep 13, 2024
0.3.0 Aug 28, 2024
0.2.0 Jul 16, 2024
0.1.0 Dec 18, 2023

#184 in Magic Beans

Download history 66/week @ 2024-05-24 3/week @ 2024-05-31 5/week @ 2024-06-07 3409/week @ 2024-06-14 8631/week @ 2024-06-21 8451/week @ 2024-06-28 10299/week @ 2024-07-05 13247/week @ 2024-07-12 14643/week @ 2024-07-19 15115/week @ 2024-07-26 17470/week @ 2024-08-02 21795/week @ 2024-08-09 19551/week @ 2024-08-16 21642/week @ 2024-08-23 25067/week @ 2024-08-30 23855/week @ 2024-09-06

93,827 downloads per month
Used in 71 crates (23 directly)

MIT/Apache

735KB
7K 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–8MB
~172K SLoC