pub enum StmSignatureError {
IndexBoundFailed(u64, u64),
EvalInvalid([u8; 64]),
LotteryLost,
SignatureInvalid(Signature),
BatchInvalid,
SerializationError,
}
Expand description
Errors which can be output by Mithril single signature verification.
Variants§
IndexBoundFailed(u64, u64)
There is an index out of bounds
EvalInvalid([u8; 64])
MSP.Eval was computed incorrectly
LotteryLost
The lottery was actually lost for the signature
SignatureInvalid(Signature)
A party submitted an invalid signature
BatchInvalid
Batch verification of STM signatures failed
SerializationError
This error occurs when the the serialization of the raw bytes failed
Trait Implementations§
source§impl Clone for StmSignatureError
impl Clone for StmSignatureError
source§fn clone(&self) -> StmSignatureError
fn clone(&self) -> StmSignatureError
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 StmSignatureError
impl Debug for StmSignatureError
source§impl Display for StmSignatureError
impl Display for StmSignatureError
source§impl Error for StmSignatureError
impl Error for StmSignatureError
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()
source§impl From<StmSignatureError> for CoreVerifierError
impl From<StmSignatureError> for CoreVerifierError
source§fn from(e: StmSignatureError) -> Self
fn from(e: StmSignatureError) -> 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 Freeze for StmSignatureError
impl RefUnwindSafe for StmSignatureError
impl Send for StmSignatureError
impl Sync for StmSignatureError
impl Unpin for StmSignatureError
impl UnwindSafe for StmSignatureError
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
)