pub enum GroupDecodingError {
NotOnCurve,
NotInSubgroup,
CoordinateDecodingError(&'static str, PrimeFieldDecodingError),
UnexpectedCompressionMode,
UnexpectedInformation,
}
Expand description
An error that may occur when trying to decode an EncodedPoint
.
Variants§
NotOnCurve
The coordinate(s) do not lie on the curve.
NotInSubgroup
The element is not part of the r-order subgroup.
CoordinateDecodingError(&'static str, PrimeFieldDecodingError)
One of the coordinates could not be decoded
UnexpectedCompressionMode
The compression mode of the encoded element was not as expected
UnexpectedInformation
The encoding contained bits that should not have been set
Trait Implementations§
Source§impl Debug for GroupDecodingError
impl Debug for GroupDecodingError
Source§impl Display for GroupDecodingError
impl Display for GroupDecodingError
Source§impl Error for GroupDecodingError
impl Error for GroupDecodingError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
Auto Trait Implementations§
impl Freeze for GroupDecodingError
impl RefUnwindSafe for GroupDecodingError
impl Send for GroupDecodingError
impl Sync for GroupDecodingError
impl Unpin for GroupDecodingError
impl UnwindSafe for GroupDecodingError
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