Trait SigningKey

pub trait SigningKey: PublicKeyData {
    // Required method
    fn sign(&self, msg: &[u8]) -> Result<Vec<u8>, Error>;
}
Expand description

A key that can be used to sign messages

Required Methods§

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

Signs msg using the selected algorithm

Implementors§