pub struct BlobsBundleV1 {
pub commitments: Vec<Bytes48>,
pub proofs: Vec<Bytes48>,
pub blobs: Vec<Blob>,
}
Expand description
This includes all bundled blob related data of an executed payload.
Fields§
§commitments: Vec<Bytes48>
All commitments in the bundle.
proofs: Vec<Bytes48>
All proofs in the bundle.
blobs: Vec<Blob>
All blobs in the bundle.
Implementations§
Source§impl BlobsBundleV1
impl BlobsBundleV1
Sourcepub fn new(sidecars: impl IntoIterator<Item = BlobTransactionSidecar>) -> Self
pub fn new(sidecars: impl IntoIterator<Item = BlobTransactionSidecar>) -> Self
Creates a new blob bundle from the given sidecars.
This folds the sidecar fields into single commit, proof, and blob vectors.
Sourcepub fn pop_sidecar(&mut self, len: usize) -> BlobTransactionSidecar
pub fn pop_sidecar(&mut self, len: usize) -> BlobTransactionSidecar
Trait Implementations§
Source§impl Clone for BlobsBundleV1
impl Clone for BlobsBundleV1
Source§fn clone(&self) -> BlobsBundleV1
fn clone(&self) -> BlobsBundleV1
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BlobsBundleV1
impl Debug for BlobsBundleV1
Source§impl Decode for BlobsBundleV1
Available on crate feature ssz
only.
impl Decode for BlobsBundleV1
Available on crate feature
ssz
only.Source§fn is_ssz_fixed_len() -> bool
fn is_ssz_fixed_len() -> bool
Returns
true
if this object has a fixed-length. Read moreSource§fn ssz_fixed_len() -> usize
fn ssz_fixed_len() -> usize
The number of bytes this object occupies in the fixed-length portion of the SSZ bytes. Read more
Source§fn from_ssz_bytes(bytes: &[u8]) -> Result<Self, DecodeError>
fn from_ssz_bytes(bytes: &[u8]) -> Result<Self, DecodeError>
Source§impl<'de> Deserialize<'de> for BlobsBundleV1
impl<'de> Deserialize<'de> for BlobsBundleV1
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Encode for BlobsBundleV1
Available on crate feature ssz
only.
impl Encode for BlobsBundleV1
Available on crate feature
ssz
only.Source§fn is_ssz_fixed_len() -> bool
fn is_ssz_fixed_len() -> bool
Returns
true
if this object has a fixed-length. Read moreSource§fn ssz_fixed_len() -> usize
fn ssz_fixed_len() -> usize
The number of bytes this object occupies in the fixed-length portion of the SSZ bytes. Read more
Source§fn ssz_bytes_len(&self) -> usize
fn ssz_bytes_len(&self) -> usize
Returns the size (in bytes) when
self
is serialized. Read moreSource§impl From<Vec<BlobTransactionSidecar>> for BlobsBundleV1
impl From<Vec<BlobTransactionSidecar>> for BlobsBundleV1
Source§fn from(sidecars: Vec<BlobTransactionSidecar>) -> Self
fn from(sidecars: Vec<BlobTransactionSidecar>) -> Self
Converts to this type from the input type.
Source§impl FromIterator<BlobTransactionSidecar> for BlobsBundleV1
impl FromIterator<BlobTransactionSidecar> for BlobsBundleV1
Source§fn from_iter<T: IntoIterator<Item = BlobTransactionSidecar>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = BlobTransactionSidecar>>(iter: T) -> Self
Creates a value from an iterator. Read more
Source§impl PartialEq for BlobsBundleV1
impl PartialEq for BlobsBundleV1
Source§impl Serialize for BlobsBundleV1
impl Serialize for BlobsBundleV1
impl Eq for BlobsBundleV1
impl StructuralPartialEq for BlobsBundleV1
Auto Trait Implementations§
impl Freeze for BlobsBundleV1
impl RefUnwindSafe for BlobsBundleV1
impl Send for BlobsBundleV1
impl Sync for BlobsBundleV1
impl Unpin for BlobsBundleV1
impl UnwindSafe for BlobsBundleV1
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more