Trait ruma_signatures::KeyPair

source ·
pub trait KeyPair: Sized {
    // Required method
    fn sign(&self, message: &[u8]) -> Signature;
Expand description

A cryptographic key pair for digitally signing data.

Required Methods§


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

Signs a JSON object.

  • message: An arbitrary series of bytes to sign.

Object Safety§

This trait is not object safe.