pub trait Signer {
    // Required methods
    fn sign(&self, payload: &[u8]) -> Result<Vec<u8>, Error>;
    fn signature_scheme(&self) -> SignatureScheme;
}
Expand description

Sign the provided payload and return a signature.

Required Methods§

source

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

Sign the provided payload.

Returns a signature on success or an Error.

source

fn signature_scheme(&self) -> SignatureScheme

The SignatureScheme of this signer.

Implementors§