thruput-signing 0.43.0

Off-chain transaction signing and construction for Thruput
Documentation
//! Error types for signing and transaction construction.

/// Errors returned by `thruput-signing`.
#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum SigningError {
    /// The provided secret key bytes were invalid.
    #[error("invalid secret key bytes")]
    InvalidSecretKey,
    /// The provided keypair bytes were invalid.
    #[error("invalid keypair bytes")]
    InvalidKeypair,
    /// The signer could not produce a signature.
    #[error("signing failed")]
    SignatureFailed,
    /// Signer does not authorize the prepared native account.
    #[error("signer public key does not match the native account")]
    SignerMismatch,
    /// Failed to encode an XDR value.
    #[error("xdr encode failed: {0}")]
    XdrEncode(String),
    /// A wallet return value is not valid, complete CXS data.
    #[error("xdr decode failed: {0}")]
    XdrDecode(String),
    /// A single-call wallet invocation returned an unexpected number of results.
    #[error("expected one native wallet call result, received {0}")]
    UnexpectedWalletReturnCount(usize),
}