#[repr(C)]pub struct BlobTransactionSidecarItem {
pub index: u64,
pub blob: Box<Blob>,
pub kzg_commitment: Bytes48,
pub kzg_proof: Bytes48,
}
Available on crate feature
kzg-sidecar
only.Expand description
A single blob sidecar.
Fields§
§index: u64
The index of this item within the BlobTransactionSidecar.
blob: Box<Blob>
The blob in this sidecar item.
kzg_commitment: Bytes48
The KZG commitment.
kzg_proof: Bytes48
The KZG proof.
Implementations§
source§impl BlobTransactionSidecarItem
impl BlobTransactionSidecarItem
sourcepub fn to_kzg_versioned_hash(&self) -> [u8; 32]
Available on crate feature kzg
only.
pub fn to_kzg_versioned_hash(&self) -> [u8; 32]
kzg
only.VERSIONED_HASH_VERSION_KZG ++ sha256(commitment)[1..]
sourcepub fn verify_blob_kzg_proof(
&self,
) -> Result<(), BlobTransactionValidationError>
Available on crate feature kzg
only.
pub fn verify_blob_kzg_proof( &self, ) -> Result<(), BlobTransactionValidationError>
kzg
only.Verifies the KZG proof of a blob to ensure its integrity and correctness.
sourcepub fn verify_blob(
&self,
hash: &NumHash,
) -> Result<(), BlobTransactionValidationError>
Available on crate feature kzg
only.
pub fn verify_blob( &self, hash: &NumHash, ) -> Result<(), BlobTransactionValidationError>
kzg
only.Verify the blob sidecar against its crate::NumHash.
Trait Implementations§
source§impl Clone for BlobTransactionSidecarItem
impl Clone for BlobTransactionSidecarItem
source§fn clone(&self) -> BlobTransactionSidecarItem
fn clone(&self) -> BlobTransactionSidecarItem
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 BlobTransactionSidecarItem
impl Debug for BlobTransactionSidecarItem
source§impl Default for BlobTransactionSidecarItem
impl Default for BlobTransactionSidecarItem
source§fn default() -> BlobTransactionSidecarItem
fn default() -> BlobTransactionSidecarItem
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for BlobTransactionSidecarItem
impl<'de> Deserialize<'de> for BlobTransactionSidecarItem
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 Hash for BlobTransactionSidecarItem
impl Hash for BlobTransactionSidecarItem
impl Eq for BlobTransactionSidecarItem
impl StructuralPartialEq for BlobTransactionSidecarItem
Auto Trait Implementations§
impl Freeze for BlobTransactionSidecarItem
impl RefUnwindSafe for BlobTransactionSidecarItem
impl Send for BlobTransactionSidecarItem
impl Sync for BlobTransactionSidecarItem
impl Unpin for BlobTransactionSidecarItem
impl UnwindSafe for BlobTransactionSidecarItem
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