Enum Repr

Source
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

§

InvalidSecretShare(String)

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

Fields

§code: i32

Trait Implementations§

Source§

impl Debug for Repr

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Repr

§

impl RefUnwindSafe for Repr

§

impl Send for Repr

§

impl Sync for Repr

§

impl Unpin for Repr

§

impl UnwindSafe for Repr

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.