Trait cylinder::Signer[][src]

pub trait Signer: Send {
    fn algorithm_name(&self) -> &str;
fn sign(&self, message: &[u8]) -> Result<Signature, SigningError>;
fn public_key(&self) -> Result<PublicKey, SigningError>;
fn clone_box(&self) -> Box<dyn Signer>; }
Expand description

A signer for arbitrary messages

Required methods

Return the algorithm name used for signing.

Signs the given message

Returns the signer’s public key

Clone implementation for Signer. The implementation of the Clone trait for Box<dyn Signer> calls this method.

Implementors