Skip to content

Commit

Permalink
feat: add blob and proof v1
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Sep 17, 2024
1 parent 7424f09 commit 8ac777b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
13 changes: 13 additions & 0 deletions crates/eips/src/eip4844/engine.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//! Misc types related to the 4844

use crate::eip4844::{Blob, Bytes48};

/// 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 8ac777b

Please sign in to comment.