alloy_eips/eip7594/
mod.rs1use crate::eip4844::{FIELD_ELEMENTS_PER_BLOB, FIELD_ELEMENT_BYTES};
5use alloy_primitives::FixedBytes;
6
7pub const FIELD_ELEMENTS_PER_EXT_BLOB: usize = FIELD_ELEMENTS_PER_BLOB as usize * 2;
9
10pub const FIELD_ELEMENTS_PER_CELL: usize = 64;
12
13pub const BYTES_PER_CELL: usize = FIELD_ELEMENTS_PER_CELL * FIELD_ELEMENT_BYTES as usize;
15
16pub const CELLS_PER_EXT_BLOB: usize = FIELD_ELEMENTS_PER_EXT_BLOB / FIELD_ELEMENTS_PER_CELL;
18
19pub const EIP_7594_WRAPPER_VERSION: u8 = 1;
21
22pub type Cell = FixedBytes<BYTES_PER_CELL>;
24
25pub const TARGET_BLOBS_PER_BLOCK_FULU: u64 = 48;
27
28pub const MAX_BLOBS_PER_BLOCK_FULU: u64 = 64;
30
31mod rlp;
32pub use rlp::*;
33
34#[cfg(feature = "kzg-sidecar")]
35mod sidecar;
36#[cfg(feature = "kzg-sidecar")]
37pub use sidecar::*;