pub enum ThresholdError<I: SignatureScheme> {
PolyError(PolyError),
BincodeError(Error),
SignatureError(I::Error),
NotEnoughPartialSignatures(usize, usize),
}Expand description
Errors associated with threshold signing, verification and aggregation.
Variants§
PolyError(PolyError)
PolyError is raised when the public key could not be recovered
BincodeError(Error)
BincodeError is raised when there is an error in (de)serialization
SignatureError(I::Error)
SignatureError is raised when there is an error in threshold signing
NotEnoughPartialSignatures(usize, usize)
NotEnoughPartialSignatures is raised if the signatures provided for aggregation were fewer than the threshold
Trait Implementations§
Source§impl<I: Debug + SignatureScheme> Debug for ThresholdError<I>
impl<I: Debug + SignatureScheme> Debug for ThresholdError<I>
Source§impl<I: SignatureScheme> Display for ThresholdError<I>
impl<I: SignatureScheme> Display for ThresholdError<I>
Source§impl<I: SignatureScheme> Error for ThresholdError<I>
impl<I: SignatureScheme> Error for ThresholdError<I>
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<I> Freeze for ThresholdError<I>
impl<I> !RefUnwindSafe for ThresholdError<I>
impl<I> Send for ThresholdError<I>
impl<I> Sync for ThresholdError<I>
impl<I> Unpin for ThresholdError<I>
impl<I> !UnwindSafe for ThresholdError<I>
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