pub enum Error {
Show 29 variants
InvalidConfig(String),
InvalidPartyId(usize),
InvalidPartyRole(String),
ThresholdNotMet {
required: usize,
actual: usize,
},
InvalidSigningParties(String),
PolicyViolation(String),
SpendingLimitExceeded {
limit: String,
attempted: String,
currency: String,
},
AddressNotWhitelisted(String),
AddressBlacklisted(String),
TimeWindowViolation(String),
ContractNotAllowed(String),
VerificationFailed(String),
Crypto(String),
InvalidSignature(String),
KeyShareNotFound(String),
Storage(String),
Encryption(String),
Serialization(String),
Deserialization(String),
Relay(String),
Timeout(String),
SessionNotFound(String),
SessionExpired(String),
Derivation(String),
HardenedDerivationNotSupported,
UnsupportedChain(String),
ChainError(String),
Internal(String),
Io(Error),
}Expand description
Errors that can occur during MPC wallet operations
Variants§
InvalidConfig(String)
Invalid party configuration
InvalidPartyId(usize)
Invalid party ID
InvalidPartyRole(String)
Invalid party role
ThresholdNotMet
Threshold requirements not met
InvalidSigningParties(String)
Invalid signing party combination
PolicyViolation(String)
Policy violation - transaction rejected
SpendingLimitExceeded
Spending limit exceeded
AddressNotWhitelisted(String)
Address not in whitelist
AddressBlacklisted(String)
Address is blacklisted
TimeWindowViolation(String)
Transaction outside allowed time window
ContractNotAllowed(String)
Contract interaction not allowed
VerificationFailed(String)
Message verification failed
Crypto(String)
Cryptographic operation failed
InvalidSignature(String)
Invalid signature
Key share not found
Storage(String)
Storage operation failed
Encryption(String)
Encryption/decryption failed
Serialization(String)
Serialization error
Deserialization(String)
Deserialization error
Relay(String)
Network/relay error
Timeout(String)
Timeout waiting for message
SessionNotFound(String)
Session not found
SessionExpired(String)
Session expired
Derivation(String)
Key derivation error
HardenedDerivationNotSupported
Hardened derivation not supported
UnsupportedChain(String)
Unsupported chain
ChainError(String)
Chain operation failed
Internal(String)
Internal error
Io(Error)
IO 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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<FromHexError> for Error
impl From<FromHexError> for Error
Source§fn from(e: FromHexError) -> Self
fn from(e: FromHexError) -> Self
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.