Trait signatory::Signer[][src]

pub trait Signer<I, S: Signature>: Send + Sync {
    fn sign(&self, input: I) -> Result<S, Error>;
}

Common trait for all signature providers

Required Methods

Sign the given input (i.e. message or digest) with this signer's private key, returning a signature.

This trait should be implemented for the input type which is closest to the provider's own API, i.e. if the provider's signing API is designed to sign message digests, this should accept digests as input.

Implementors