pub trait Signable {
    // Required method
    fn hash(&self, hasher: &mut Sha256);

    // Provided methods
    fn sign(&self, private_key: &Scalar) -> Result<Vec<u8>, Error> { ... }
    fn verify(&self, signature: &[u8], public_key: &PublicKey) -> bool { ... }
}

Required Methods§

source

fn hash(&self, hasher: &mut Sha256)

Provided Methods§

source

fn sign(&self, private_key: &Scalar) -> Result<Vec<u8>, Error>

source

fn verify(&self, signature: &[u8], public_key: &PublicKey) -> bool

Implementors§