pub(crate) enum Repr {
Show 22 variants
InvalidUuid(String),
InvalidHostUrl(String),
InvalidSecretShare(String),
InvalidMessage(String),
InvalidNumberOfParties(String),
ExecutorError(String),
InvalidKeygenKeypair(String),
InvalidKeygenId(String),
InvalidDerivationElement(String),
InvalidXpriv(String),
InvalidSpriv(String),
InvalidApiKey(String),
InvalidPrivateKey(String),
InvalidTweak(String),
InvalidXpub(String),
InvalidSpub(String),
InvalidPublicKey(String),
NullPointer(String),
PanicError(String),
PlatformError(String),
Internal(String),
UnknownExecutorError {
code: i32,
msg: String,
},
}Expand description
Internal representation of different error types.
This enum contains all the specific error variants that can occur in the SDK. Each variant includes a descriptive message providing context about the failure.
Variants§
InvalidUuid(String)
The provided UUID format is invalid
InvalidHostUrl(String)
The host URL format is invalid or unreachable
The secret share format is invalid or corrupted
InvalidMessage(String)
The message format is invalid for the operation
InvalidNumberOfParties(String)
The number of parties is invalid for the protocol
ExecutorError(String)
General error from the MPC protocol execution
InvalidKeygenKeypair(String)
The keygen keypair format is invalid
InvalidKeygenId(String)
The keygen ID format is invalid
InvalidDerivationElement(String)
The derivation path element is invalid
InvalidXpriv(String)
The extended private key format is invalid
InvalidSpriv(String)
The secret private key format is invalid
InvalidApiKey(String)
The API key is invalid or unauthorized
InvalidPrivateKey(String)
The private key format is invalid
InvalidTweak(String)
The cryptographic tweak value is invalid
InvalidXpub(String)
The extended public key format is invalid
InvalidSpub(String)
The secret public key format is invalid
InvalidPublicKey(String)
The public key format is invalid
NullPointer(String)
An internal pointer error occurred
PanicError(String)
An unexpected error occurred in the cryptographic operations
PlatformError(String)
A platform-specific error occurred
Internal(String)
Internal SDK error
UnknownExecutorError
Unknown executor code returned