alloy_eips/
eip7594.rs

1//! Constants for PeerDAS.
2//!
3//! See also [EIP-7594](https://eips.ethereum.org/EIPS/eip-7594): PeerDAS - Peer Data Availability Sampling
4
5use crate::eip4844::FIELD_ELEMENTS_PER_BLOB;
6
7/// Number of field elements in a Reed-Solomon extended blob.
8pub const FIELD_ELEMENTS_PER_EXT_BLOB: u64 = FIELD_ELEMENTS_PER_BLOB * 2;
9
10/// Number of field elements in a cell.
11pub const FIELD_ELEMENTS_PER_CELL: u64 = 64;
12
13/// The number of cells in an extended blob.
14pub const CELLS_PER_EXT_BLOB: u64 = FIELD_ELEMENTS_PER_EXT_BLOB / FIELD_ELEMENTS_PER_CELL;