thruput-signing 0.43.0

Off-chain transaction signing and construction for Thruput
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Signing abstraction used by Thruput transaction builders.

use crate::SigningError;

/// Produces Thruput-compatible signatures over raw message bytes.
///
/// The trait is synchronous and covers in-process keys.
pub trait Signer {
    /// Returns the signer's public key in Thruput XDR form.
    fn public_key(&self) -> thruput_xdr::types::PublicKey;

    /// Signs the provided message bytes.
    fn sign(&self, message: &[u8]) -> Result<thruput_xdr::types::Signature, SigningError>;
}