Skip to main content

Signer

Trait Signer 

Source
pub trait Signer {
    // Required method
    fn sign(&self, message: &[u8]) -> Result<Vec<u8>>;
}

Required Methods§

Source

fn sign(&self, message: &[u8]) -> Result<Vec<u8>>

Sign a message with the private key.

§Errors

Returns an error if signing fails.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§