pub enum Error {
LocalError(String),
RemoteError(String),
VerifySignature,
NoKeyInitAck,
NotFinished,
Protocol(Error),
FromInt(TryFromIntError),
Bip32(Error),
}
Available on crate feature
cggmp
only.Expand description
Errors generated by the protocol.
Variants§
LocalError(String)
Error generated by the CGGMP protocol library on a local node.
RemoteError(String)
Error generated by the CGGMP protocol library on a remote node.
VerifySignature
Signature verification failed.
NoKeyInitAck
Could not locate ack for key init phase.
NotFinished
Attempt to finish a protocol when another round is expected.
Protocol(Error)
Protocol library errors.
FromInt(TryFromIntError)
Error generated converting integers.
Bip32(Error)
BIP32 library error.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 From<LocalError> for Error
impl From<LocalError> for Error
Source§fn from(value: LocalError) -> Self
fn from(value: LocalError) -> Self
Converts to this type from the input type.
Source§impl From<RemoteError<VerifyingKey<Secp256k1>>> for Error
impl From<RemoteError<VerifyingKey<Secp256k1>>> for Error
Source§fn from(value: RemoteError<VerifyingKey>) -> Self
fn from(value: RemoteError<VerifyingKey>) -> Self
Converts to this type from the input type.
Source§impl From<TryFromIntError> for Error
impl From<TryFromIntError> for Error
Source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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