From 8ac777b34684ae2ee26779835718f3743376e15c Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Tue, 17 Sep 2024 20:03:41 +0200 Subject: [PATCH] feat: add blob and proof v1 --- crates/eips/src/eip4844/engine.rs | 13 +++++++++++++ crates/eips/src/eip4844/mod.rs | 3 +++ 2 files changed, 16 insertions(+) create mode 100644 crates/eips/src/eip4844/engine.rs diff --git a/crates/eips/src/eip4844/engine.rs b/crates/eips/src/eip4844/engine.rs new file mode 100644 index 000000000000..5e6c6fc2c94f --- /dev/null +++ b/crates/eips/src/eip4844/engine.rs @@ -0,0 +1,13 @@ +//! Misc types related to the 4844 + +use crate::eip4844::{Blob, Bytes48}; + +/// 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, +} \ No newline at end of file diff --git a/crates/eips/src/eip4844/mod.rs b/crates/eips/src/eip4844/mod.rs index dbba4352d449..99e315555eaf 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;