pub enum ElGamalError {
ThresholdNotMet {
have: usize,
need: u32,
},
Sec1Decode(String),
DuplicateParty(u32),
InvalidScalar(String),
}Expand description
Errors during threshold ElGamal operations.
Variants§
ThresholdNotMet
Threshold not met.
Sec1Decode(String)
SEC1 decoding failure.
DuplicateParty(u32)
Duplicate party indices.
InvalidScalar(String)
Invalid scalar bytes.
Trait Implementations§
Source§impl Debug for ElGamalError
impl Debug for ElGamalError
Source§impl Display for ElGamalError
impl Display for ElGamalError
Source§impl Error for ElGamalError
impl Error for ElGamalError
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 ElGamalError
impl RefUnwindSafe for ElGamalError
impl Send for ElGamalError
impl Sync for ElGamalError
impl Unpin for ElGamalError
impl UnsafeUnpin for ElGamalError
impl UnwindSafe for ElGamalError
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