Trait darkfi_sdk::crypto::schnorr::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