Enum frost_core::Error
source · #[non_exhaustive]
pub enum Error<C: Ciphersuite> {
Show 19 variants
InvalidMinSigners,
InvalidMaxSigners,
InvalidCoefficients,
MalformedIdentifier,
MalformedSigningKey,
MalformedVerifyingKey,
MalformedSignature,
InvalidSignature,
DuplicatedShares,
IdentityCommitment,
InvalidSignatureShare {
signer: Identifier<C>,
},
InvalidSecretShare,
PackageNotFound,
IncorrectNumberOfPackages,
IncorrectPackage,
DKGNotSupported,
InvalidProofOfKnowledge,
FieldError(FieldError),
GroupError(GroupError),
}
Expand description
An error related to FROST.
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.
InvalidMinSigners
min_signers is invalid
InvalidMaxSigners
max_signers is invalid
InvalidCoefficients
max_signers is invalid
MalformedIdentifier
This identifier is unserializable.
MalformedSigningKey
The encoding of a signing key was malformed.
MalformedVerifyingKey
The encoding of a verifying key was malformed.
MalformedSignature
The encoding of a signature was malformed.
InvalidSignature
Signature verification failed.
Duplicated shares provided
IdentityCommitment
Commitment equals the identity
Signature share verification failed.
Secret share verification failed.
PackageNotFound
Round 1 package not found for Round 2 participant.
IncorrectNumberOfPackages
Incorrect number of packages.
IncorrectPackage
The incorrect package was specified.
DKGNotSupported
The ciphersuite does not support DKG.
InvalidProofOfKnowledge
The proof of knowledge is not valid.
FieldError(FieldError)
Error in scalar Field.
GroupError(GroupError)
Error in elliptic curve Group.
Trait Implementations§
source§impl<C: Ciphersuite> Display for Error<C>
impl<C: Ciphersuite> Display for Error<C>
source§impl<C: Ciphersuite> Error for Error<C>where
Self: Debug + Display,
impl<C: Ciphersuite> Error for Error<C>where Self: Debug + Display,
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<FieldError> for Error<C>
impl<C: Ciphersuite> From<FieldError> for Error<C>
source§fn from(source: FieldError) -> Self
fn from(source: FieldError) -> Self
Converts to this type from the input type.
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.