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