Enum frost_core::Error
source · #[non_exhaustive]pub enum Error<C: Ciphersuite> {
Show 21 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),
InvalidCoefficient,
}
Expand description
An error related to FROST.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
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.
InvalidCoefficient
Error in coefficient commitment deserialization.