Skip to content

Commit

Permalink
feat: add blob and proof v1 (alloy-rs#1300)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored and lwedge99 committed Oct 8, 2024
1 parent f945860 commit 7e2f7bc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
14 changes: 14 additions & 0 deletions crates/eips/src/eip4844/engine.rs
Original file line number Diff line number Diff line change
@@ -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`: <https://github.com/ethereum/execution-apis/pull/559>
#[derive(Debug, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct BlobAndProofV1 {
/// The blob data.
pub blob: Box<Blob>,
/// The KZG proof for the blob.
pub proof: Bytes48,
}
3 changes: 3 additions & 0 deletions crates/eips/src/eip4844/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7e2f7bc

Please sign in to comment.