pub trait KeyPair: Sized {
    fn sign(&self, message: &[u8]) -> Signature;
}
Expand description

A cryptographic key pair for digitally signing data.

Required Methods§

Signs a JSON object.

Parameters
  • message: An arbitrary series of bytes to sign.

Implementors§