pub enum Error {
SessionIdMismatch,
SessionIdRequired,
NotVerifyingParty,
ParticipantVerifierLength(usize, usize),
Json(Error),
Cggmp(Error),
Frost(Error),
Protocol(Error),
Ecdsa(Error),
Ed25519(Box<Error>),
}
Expand description
Errors generated by the driver.
Variants§
SessionIdMismatch
Error when the session identifier for an incoming message does not match the session identifier assigned to the bridge.
SessionIdRequired
Error generated when a session identifier is required.
NotVerifyingParty
Signing key does not exist in list of verifying keys.
ParticipantVerifierLength(usize, usize)
Error when noise protocol participants list does not match the number of verifying keys.
Json(Error)
JSON error.
Cggmp(Error)
Available on crate feature
cggmp
only.CGGMP driver errors.
Frost(Error)
Available on crate feature
frost-ed25519
only.FROST driver errors.
Protocol(Error)
Protocol library errors.
Ecdsa(Error)
Available on crate features
cggmp
or ecdsa
only.ECDSA library errors.
Ed25519(Box<Error>)
Available on crate features
eddsa
or schnorr
only.Ed25519 library errors.
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()
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