darkfi_sdk::crypto::schnorr

Trait SchnorrSecret

Source
pub trait SchnorrSecret {
    // Required method
    fn sign(&self, message: &[u8]) -> Signature;
}
Expand description

Trait for secret keys that implements a signature creation

Required Methods§

Source

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

Sign a given message

Implementors§

Source§

impl SchnorrSecret for SecretKey

Schnorr signature trait implementations for the stuff in keypair.rs