Enum frost_core::GroupError
source · #[non_exhaustive]
pub enum GroupError {
MalformedElement,
InvalidIdentityElement,
InvalidNonPrimeOrderElement,
}
Expand description
An error related to a Group (usually an elliptic curve or constructed from one) or one of its Elements.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MalformedElement
The encoding of a group element was malformed.
InvalidIdentityElement
This element MUST NOT be the identity.
InvalidNonPrimeOrderElement
This element MUST have (large) prime order.
Trait Implementations§
source§impl Clone for GroupError
impl Clone for GroupError
source§fn clone(&self) -> GroupError
fn clone(&self) -> GroupError
Returns a copy of the value. Read more
1.0.0 · 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 GroupError
impl Debug for GroupError
source§impl Display for GroupError
impl Display for GroupError
source§impl Error for GroupError
impl Error for GroupError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<C: Ciphersuite> From<GroupError> for Error<C>
impl<C: Ciphersuite> From<GroupError> for Error<C>
source§fn from(source: GroupError) -> Self
fn from(source: GroupError) -> Self
Converts to this type from the input type.
source§impl PartialEq<GroupError> for GroupError
impl PartialEq<GroupError> for GroupError
source§fn eq(&self, other: &GroupError) -> bool
fn eq(&self, other: &GroupError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.