pub enum CurveError {
NotPrime,
Singular,
NotComplete,
NotOnCurve,
WrongOrder,
}Expand description
Why a curve can’t be built from its parameters.
Variants§
NotPrime
The modulus is not a prime above 3.
Singular
The curve has a singular point: its discriminant is zero modulo the prime.
NotComplete
The twisted Edwards addition law is not complete: a must be a square and d not.
NotOnCurve
The generator of a Domain is not on its curve.
WrongOrder
The order given for a Domain is not a multiple of its generator’s.
Trait Implementations§
Source§impl Clone for CurveError
impl Clone for CurveError
impl Copy for CurveError
Source§impl Debug for CurveError
impl Debug for CurveError
Source§impl Display for CurveError
impl Display for CurveError
impl Eq for CurveError
Source§impl Error for CurveError
impl Error for CurveError
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 CurveError
impl PartialEq for CurveError
impl StructuralPartialEq for CurveError
Auto Trait Implementations§
impl Freeze for CurveError
impl RefUnwindSafe for CurveError
impl Send for CurveError
impl Sync for CurveError
impl Unpin for CurveError
impl UnsafeUnpin for CurveError
impl UnwindSafe for CurveError
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