Trait Signer

Source
pub trait Signer {
    // Required method
    fn sign<'a, 'b: 'a, 'c: 'a>(
        &'a self,
        agent_info: &'b AgentInfo,
        message: &'c [u8],
    ) -> BoxFut<'a, K2Result<Bytes>>;
}
Expand description

Defines a type capable of cryptographic signatures.

Required Methods§

Source

fn sign<'a, 'b: 'a, 'c: 'a>( &'a self, agent_info: &'b AgentInfo, message: &'c [u8], ) -> BoxFut<'a, K2Result<Bytes>>

Sign the encoded data, returning the resulting detached signature bytes.

Implementors§