pub enum KeygenError {
Show 15 variants
InvalidMessage,
InvalidCommitmentHash,
InvalidDLogProof,
InvalidPolynomialPoint,
InvalidKeyRefresh,
InvalidQuorumChange,
NotUniqueXiValues,
BigFVecMismatch,
FailedFelmanVerify,
PublicKeyMismatch,
BigSMismatch,
PPRFError(&'static str),
MissingMessage,
SendMessage,
AbortProtocol(usize),
}
Expand description
Error type for distributed key generation protocol operations.
This enum defines all possible errors that can occur during the execution of the DKG protocol, including message handling, cryptographic operations, and protocol state management.
Variants§
InvalidMessage
Error while serializing or deserializing message data, or invalid message length
InvalidCommitmentHash
The commitment hash provided does not match the expected value
InvalidDLogProof
The discrete logarithm proof provided is invalid
InvalidPolynomialPoint
The polynomial point provided is invalid
InvalidKeyRefresh
The key refresh operation failed
InvalidQuorumChange
The quorum change operation failed
NotUniqueXiValues
The x_i values provided are not unique
BigFVecMismatch
The Big F vector does not match the expected value
FailedFelmanVerify
The Feldman verification failed
PublicKeyMismatch
The public key in the message does not match the party’s public key
BigSMismatch
The Big S value does not match the expected value
PPRFError(&'static str)
An error occurred in the PPRF (Pseudorandom Function) operation
MissingMessage
A required message is missing
SendMessage
Failed to send a message
AbortProtocol(usize)
A party has decided to abort the protocol