pub enum RuneError {
RingTooSmall,
SignerIndexOutOfRange,
InconsistentRingParameter,
MalformedSignature,
MalformedChallenge,
MalformedPublicKey,
RejectionSamplingFailed,
}Expand description
Errors returned by Rune key, signing, and verification operations.
Variants§
RingTooSmall
Ring size is less than 2.
SignerIndexOutOfRange
Signer index is out of range for the given ring.
InconsistentRingParameter
Not all public keys in the ring share the same public matrix seed.
MalformedSignature
A signature field has wrong length or structure.
MalformedChallenge
A supplied challenge polynomial has invalid weight or coefficients.
MalformedPublicKey
A public key has invalid structure.
RejectionSamplingFailed
Rejection sampling did not terminate within the maximum number of attempts.
Trait Implementations§
impl Eq for RuneError
Source§impl Error for RuneError
impl Error for RuneError
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 StructuralPartialEq for RuneError
Auto Trait Implementations§
impl Freeze for RuneError
impl RefUnwindSafe for RuneError
impl Send for RuneError
impl Sync for RuneError
impl Unpin for RuneError
impl UnsafeUnpin for RuneError
impl UnwindSafe for RuneError
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