pub trait Signer: Send + Sync { // Required methods fn public(&self) -> PublicKey; fn sign(&self, context: &[u8], message: &[u8]) -> Result<Signature>; }
A abstract signer.
Returns the public key corresponding to the signer.
Generates a signature over the context and message.