diff --git a/crates/eips/src/eip4844/engine.rs b/crates/eips/src/eip4844/engine.rs new file mode 100644 index 00000000000..b8bb0146238 --- /dev/null +++ b/crates/eips/src/eip4844/engine.rs @@ -0,0 +1,14 @@ +//! Misc types related to the 4844 + +use crate::eip4844::{Blob, Bytes48}; +use alloc::boxed::Box; + +/// Blob type returned in responses to `engine_getBlobsV1`: +#[derive(Debug, Clone, PartialEq, Eq)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] +pub struct BlobAndProofV1 { + /// The blob data. + pub blob: Box, + /// The KZG proof for the blob. + pub proof: Bytes48, +} diff --git a/crates/eips/src/eip4844/mod.rs b/crates/eips/src/eip4844/mod.rs index dbba4352d44..99e315555ea 100644 --- a/crates/eips/src/eip4844/mod.rs +++ b/crates/eips/src/eip4844/mod.rs @@ -13,6 +13,9 @@ pub mod trusted_setup_points; pub mod builder; pub mod utils; +mod engine; +pub use engine::*; + /// Contains sidecar related types #[cfg(feature = "kzg-sidecar")] mod sidecar;