pub type Error = Error<Ristretto255Sha512>;
Expand description
An error.
Aliased Type§
enum Error {
Show 30 variants
InvalidMinSigners,
InvalidMaxSigners,
InvalidCoefficients,
MalformedIdentifier,
DuplicatedIdentifier,
UnknownIdentifier,
IncorrectNumberOfIdentifiers,
MalformedSigningKey,
MalformedVerifyingKey,
MalformedSignature,
InvalidSignature,
DuplicatedShares,
IncorrectNumberOfShares,
IdentityCommitment,
MissingCommitment,
IncorrectCommitment,
IncorrectNumberOfCommitments,
InvalidSignatureShare {
culprit: Identifier<Ristretto255Sha512>,
},
InvalidSecretShare,
PackageNotFound,
IncorrectNumberOfPackages,
IncorrectPackage,
DKGNotSupported,
InvalidProofOfKnowledge {
culprit: Identifier<Ristretto255Sha512>,
},
FieldError(FieldError),
GroupError(GroupError),
InvalidCoefficient,
IdentifierDerivationNotSupported,
SerializationError,
DeserializationError,
}
Variants§
InvalidMinSigners
min_signers is invalid
InvalidMaxSigners
max_signers is invalid
InvalidCoefficients
max_signers is invalid
MalformedIdentifier
This identifier is unserializable.
DuplicatedIdentifier
This identifier is duplicated.
UnknownIdentifier
This identifier does not belong to a participant in the signing process.
IncorrectNumberOfIdentifiers
Incorrect number of identifiers.
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
MissingCommitment
The participant’s commitment is missing from the Signing Package
IncorrectCommitment
The participant’s commitment is incorrect
IncorrectNumberOfCommitments
Incorrect number of commitments.
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.
Fields
culprit: Identifier<Ristretto255Sha512>
The identifier of the signer whose share validation failed.
FieldError(FieldError)
Error in scalar Field.
GroupError(GroupError)
Error in elliptic curve Group.
InvalidCoefficient
Error in coefficient commitment deserialization.
IdentifierDerivationNotSupported
The ciphersuite does not support deriving identifiers from strings.
SerializationError
Error serializing value.
DeserializationError
Error deserializing value.