Signer

Trait Signer 

Source
pub trait Signer: Send + Sync {
    // Required methods
    fn algorithm(&self) -> SignatureAlgorithm;
    fn sign(&self, payload: &[u8]) -> Result<Vec<u8>>;
}
Expand description

Trait for signing data.

Required Methods§

Source

fn algorithm(&self) -> SignatureAlgorithm

The signature algorithm used by this signer.

Source

fn sign(&self, payload: &[u8]) -> Result<Vec<u8>>

Sign the provided payload, returning the raw signature bytes.

Implementors§