Enum frost_core::Error
source · #[non_exhaustive]pub enum Error<C: Ciphersuite> {
Show 20 variants
InvalidMinSigners,
InvalidMaxSigners,
InvalidCoefficients,
MalformedIdentifier,
MalformedSigningKey,
MalformedVerifyingKey,
MalformedSignature,
InvalidSignature,
DuplicatedShares,
IncorrectNumberOfShares,
IdentityCommitment,
InvalidSignatureShare {
signer: Identifier<C>,
},
InvalidSecretShare {
identifier: Identifier<C>,
},
PackageNotFound,
IncorrectNumberOfPackages,
IncorrectPackage,
DKGNotSupported,
InvalidProofOfKnowledge {
sender: Identifier<C>,
},
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
Incorrect number of shares.
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
Fields
§
sender: Identifier<C>
The identifier of the signer whose share validation failed.
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.
source§impl<C: PartialEq + Ciphersuite> PartialEq<Error<C>> for Error<C>
impl<C: PartialEq + Ciphersuite> PartialEq<Error<C>> for Error<C>
impl<C: Copy + Ciphersuite> Copy for Error<C>
impl<C: Eq + Ciphersuite> Eq for Error<C>
impl<C: Ciphersuite> StructuralEq for Error<C>
impl<C: Ciphersuite> StructuralPartialEq for Error<C>
Auto Trait Implementations§
impl<C> RefUnwindSafe for Error<C>where <<<C as Ciphersuite>::Group as Group>::Field as Field>::Scalar: RefUnwindSafe,
impl<C> Send for Error<C>where <<<C as Ciphersuite>::Group as Group>::Field as Field>::Scalar: Send,
impl<C> Sync for Error<C>where <<<C as Ciphersuite>::Group as Group>::Field as Field>::Scalar: Sync,
impl<C> Unpin for Error<C>where <<<C as Ciphersuite>::Group as Group>::Field as Field>::Scalar: Unpin,
impl<C> UnwindSafe for Error<C>where <<<C as Ciphersuite>::Group as Group>::Field as Field>::Scalar: UnwindSafe,
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