pub enum SignError {
InvalidCommitment,
InvalidDigest,
InvalidFinalSessionID,
FailedCheck(&'static str),
K256Error,
InvalidPreSign,
InvalidMessage,
MissingMessage,
SendMessage,
AbortProtocol(usize),
AbortProtocolAndBanParty(u8),
}Expand description
Error types that can occur during the Distributed Signature Generation protocol
This enum represents all possible error conditions that can arise during
the execution of the DSG protocol. Each variant includes a descriptive
error message and implements the std::error::Error trait.
Variants§
InvalidCommitment
Indicates that a cryptographic commitment is invalid
InvalidDigest
Indicates that a message digest is invalid
InvalidFinalSessionID
Indicates that the final session ID is invalid
FailedCheck(&'static str)
Indicates that a protocol check has failed
K256Error
Indicates an error from the k256 elliptic curve library
InvalidPreSign
Indicates that a pre-signature is invalid
InvalidMessage
Indicates that a message has an invalid format
MissingMessage
Indicates that a required message is missing
SendMessage
Indicates that a message could not be sent
AbortProtocol(usize)
Indicates that a party has decided to abort the protocol
AbortProtocolAndBanParty(u8)
Indicates that a party should be banned and the protocol aborted
Trait Implementations§
Source§impl Error for SignError
impl Error for SignError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<Error> for SignError
Conversion from k256::ecdsa::Error to SignError
impl From<Error> for SignError
Conversion from k256::ecdsa::Error to SignError
This implementation allows k256 elliptic curve errors to be automatically
converted to SignError::K256Error when using the ? operator.
Source§impl From<Error> for SignError
Conversion from Error to SignError
impl From<Error> for SignError
Conversion from Error to SignError
This implementation allows protocol tag errors to be automatically converted
to appropriate SignError variants when using the ? operator.
Source§impl From<MessageSendError> for SignError
Conversion from MessageSendError to SignError
impl From<MessageSendError> for SignError
Conversion from MessageSendError to SignError
This implementation allows MessageSendError to be automatically converted
to SignError::SendMessage when using the ? operator.