Trait ruma_signatures::KeyPair[][src]

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

A cryptographic key pair for digitally signing data.

Required methods

fn sign(&self, message: &[u8]) -> Signature[src]

Signs a JSON object.

Parameters

  • message: An arbitrary series of bytes to sign.
Loading content...

Implementors

impl KeyPair for Ed25519KeyPair[src]

Loading content...