pub enum StmAggregateSignatureError<D: Digest + FixedOutput> {
IvkInvalid(Box<BlsVerificationKey>),
SerializationError,
PathInvalid(MerkleBatchPath<D>),
BatchInvalid,
CoreVerificationError(CoreVerifierError),
UnsupportedProofSystem(AggregateSignatureType),
}
Expand description
Errors which can be output by Mithril aggregate verification.
Variants§
IvkInvalid(Box<BlsVerificationKey>)
The IVK is invalid after aggregating the keys
SerializationError
This error occurs when the the serialization of the raw bytes failed
PathInvalid(MerkleBatchPath<D>)
Invalid merkle batch path
BatchInvalid
Batch verification of STM aggregate signatures failed
CoreVerificationError(CoreVerifierError)
CoreVerifier
check failed
UnsupportedProofSystem(AggregateSignatureType)
The proof system used in the aggregate signature is not supported
Trait Implementations§
Source§impl<D: Clone + Digest + FixedOutput> Clone for StmAggregateSignatureError<D>
impl<D: Clone + Digest + FixedOutput> Clone for StmAggregateSignatureError<D>
Source§fn clone(&self) -> StmAggregateSignatureError<D>
fn clone(&self) -> StmAggregateSignatureError<D>
Returns a duplicate 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<D: Debug + Digest + FixedOutput> Debug for StmAggregateSignatureError<D>
impl<D: Debug + Digest + FixedOutput> Debug for StmAggregateSignatureError<D>
Source§impl<D: Digest + FixedOutput> Display for StmAggregateSignatureError<D>
impl<D: Digest + FixedOutput> Display for StmAggregateSignatureError<D>
Source§impl<D: Digest + FixedOutput> Error for StmAggregateSignatureError<D>
impl<D: Digest + FixedOutput> Error for StmAggregateSignatureError<D>
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()
Source§impl<D: Digest + FixedOutput> From<CoreVerifierError> for StmAggregateSignatureError<D>
impl<D: Digest + FixedOutput> From<CoreVerifierError> for StmAggregateSignatureError<D>
Source§fn from(e: CoreVerifierError) -> Self
fn from(e: CoreVerifierError) -> Self
Converts to this type from the input type.
Source§impl<D: Digest + FixedOutput> From<StmSignatureError> for StmAggregateSignatureError<D>
impl<D: Digest + FixedOutput> From<StmSignatureError> for StmAggregateSignatureError<D>
Source§fn from(e: StmSignatureError) -> Self
fn from(e: StmSignatureError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<D> Freeze for StmAggregateSignatureError<D>
impl<D> RefUnwindSafe for StmAggregateSignatureError<D>where
D: RefUnwindSafe,
impl<D> Send for StmAggregateSignatureError<D>where
D: Send,
impl<D> Sync for StmAggregateSignatureError<D>where
D: Sync,
impl<D> Unpin for StmAggregateSignatureError<D>where
D: Unpin,
impl<D> UnwindSafe for StmAggregateSignatureError<D>where
D: UnwindSafe,
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