pub trait SigningKey {
    type Hasher: HashImpl;

    // Required methods
    fn sign(&self, input: impl Writable) -> Result<Vec<u8>>;
    fn algorithm(&self) -> Algorithm;

    // Provided method
    fn hash(&self, data: impl Writable) -> HashOutput { ... }
}

Required Associated Types§

Required Methods§

source

fn sign(&self, input: impl Writable) -> Result<Vec<u8>>

source

fn algorithm(&self) -> Algorithm

Provided Methods§

source

fn hash(&self, data: impl Writable) -> HashOutput

Object Safety§

This trait is not object safe.

Implementors§