pub enum OsstError {
EmptyContributions,
InsufficientContributions {
got: usize,
need: usize,
},
DuplicateIndex(u32),
ZeroChallenge,
InvalidCommitment,
InvalidResponse,
LagrangeError,
InvalidIndex,
}Expand description
Errors that can occur during OSST operations
Variants§
EmptyContributions
No contributions provided
InsufficientContributions
Not enough contributions for threshold
DuplicateIndex(u32)
Duplicate custodian index
ZeroChallenge
Challenge hash resulted in zero (astronomically unlikely)
InvalidCommitment
Invalid commitment point (not on curve)
InvalidResponse
Invalid response scalar (not canonical)
LagrangeError
Lagrange computation failed (duplicate indices)
InvalidIndex
Index out of valid range (must be > 0)
Trait Implementations§
Source§impl Error for OsstError
Available on crate feature std only.
impl Error for OsstError
Available on crate feature
std only.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()
impl Eq for OsstError
impl StructuralPartialEq for OsstError
Auto Trait Implementations§
impl Freeze for OsstError
impl RefUnwindSafe for OsstError
impl Send for OsstError
impl Sync for OsstError
impl Unpin for OsstError
impl UnwindSafe for OsstError
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