63 releases (10 breaking)

new 0.11.1 Mar 12, 2025
0.10.9 Mar 6, 2025
0.9.0 Dec 30, 2024
0.7.1 Nov 28, 2024
0.1.4 Jul 16, 2024

#102 in Magic Beans

Download history 14591/week @ 2024-11-20 13916/week @ 2024-11-27 11988/week @ 2024-12-04 13772/week @ 2024-12-11 10784/week @ 2024-12-18 8406/week @ 2024-12-25 10594/week @ 2025-01-01 16208/week @ 2025-01-08 14077/week @ 2025-01-15 15275/week @ 2025-01-22 18491/week @ 2025-01-29 20803/week @ 2025-02-05 15569/week @ 2025-02-12 18199/week @ 2025-02-19 18162/week @ 2025-02-26 17729/week @ 2025-03-05

73,189 downloads per month
Used in 32 crates (16 directly)

MIT/Apache

150KB
3K SLoC

op-alloy-consensus

CI op-alloy-consensus crate MIT License Apache License Book

Optimism consensus interface.

This crate contains constants, types, and functions for implementing Optimism EL consensus and communication. This includes an extended OpTxEnvelope type with deposit transactions, and receipts containing OP Stack specific fields (deposit_nonce + deposit_receipt_version).

In general a type belongs in this crate if it exists in the alloy-consensus crate, but was modified from the base Ethereum protocol in the OP Stack. For consensus types that are not modified by the OP Stack, the alloy-consensus types should be used instead.

Provenance

Much of this code was ported from reth-primitives as part of ongoing alloy migrations.

Dependencies

~15–24MB
~234K SLoC