pub enum EyvaraError {
MalformedProof,
MalformedPublicKey,
HintWeightExceeded,
NormBoundExceeded,
ChallengeMismatch,
OutputMismatch,
RejectionSamplingFailed,
}Expand description
Errors that can occur during Eyvara VRF operations.
Variants§
MalformedProof
Proof structure is invalid.
MalformedPublicKey
Public key structure is invalid.
HintWeightExceeded
Hint weight exceeds omega.
NormBoundExceeded
Response norm exceeds the bound.
ChallengeMismatch
Fiat-Shamir challenge mismatch.
OutputMismatch
Output does not match the proof.
RejectionSamplingFailed
Rejection sampling exhausted all attempts.
Trait Implementations§
Source§impl Clone for EyvaraError
impl Clone for EyvaraError
Source§fn clone(&self) -> EyvaraError
fn clone(&self) -> EyvaraError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EyvaraError
impl Debug for EyvaraError
Source§impl Display for EyvaraError
impl Display for EyvaraError
impl Eq for EyvaraError
Source§impl Error for EyvaraError
impl Error for EyvaraError
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 PartialEq for EyvaraError
impl PartialEq for EyvaraError
Source§fn eq(&self, other: &EyvaraError) -> bool
fn eq(&self, other: &EyvaraError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EyvaraError
Auto Trait Implementations§
impl Freeze for EyvaraError
impl RefUnwindSafe for EyvaraError
impl Send for EyvaraError
impl Sync for EyvaraError
impl Unpin for EyvaraError
impl UnsafeUnpin for EyvaraError
impl UnwindSafe for EyvaraError
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