pub trait Signer: Send + Sync {
    // Required methods
    fn public(&self) -> PublicKey;
    fn sign(&self, context: &[u8], message: &[u8]) -> Result<Signature>;
}
Expand description

A abstract signer.

Required Methods§

source

fn public(&self) -> PublicKey

Returns the public key corresponding to the signer.

source

fn sign(&self, context: &[u8], message: &[u8]) -> Result<Signature>

Generates a signature over the context and message.

Implementors§