ruma::signatures

Trait KeyPair

Source
pub trait KeyPair: Sized {
    // Required method
    fn sign(&self, message: &[u8]) -> Signature;
}
Available on crate feature signatures only.
Expand description

A cryptographic key pair for digitally signing data.

Required Methods§

Source

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

Signs a JSON object.

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§