pub enum BlobCellRecoveryError {
InsufficientCells {
provided: usize,
required: usize,
},
CellCountMismatch {
provided: usize,
expected: usize,
},
CellCountOverflow,
CommitmentMismatch {
blob_index: usize,
},
Kzg(Error),
}Available on crate features
kzg-sidecar and kzg only.Expand description
An error that can occur while recovering blobs from EIP-7594 cells.
Variants§
InsufficientCells
Fewer than half of the extended blob cells were selected.
Fields
CellCountMismatch
The flattened cell slice does not match the commitments and cell mask.
Fields
CellCountOverflow
The expected cell count cannot be represented as a usize.
CommitmentMismatch
A reconstructed blob does not match its supplied commitment.
Kzg(Error)
An error returned by c_kzg.
Trait Implementations§
Source§impl Debug for BlobCellRecoveryError
impl Debug for BlobCellRecoveryError
Source§impl Display for BlobCellRecoveryError
impl Display for BlobCellRecoveryError
Source§impl Error for BlobCellRecoveryError
impl Error for BlobCellRecoveryError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for BlobCellRecoveryError
impl RefUnwindSafe for BlobCellRecoveryError
impl Send for BlobCellRecoveryError
impl Sync for BlobCellRecoveryError
impl Unpin for BlobCellRecoveryError
impl UnsafeUnpin for BlobCellRecoveryError
impl UnwindSafe for BlobCellRecoveryError
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> 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 moreLayout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes
Size for each variant:
InsufficientCells: 24 bytesCellCountMismatch: 24 bytesCellCountOverflow: 0 bytesCommitmentMismatch: 16 bytesKzg: 32 bytes