[][src]Trait signatory::Verifier

pub trait Verifier<S: Signature>: Send + Sync {
    fn verify(&self, msg: &[u8], signature: &S) -> Result<(), Error>;
}

Trait for all verifiers which accept a message (byte slice) and signature

Required methods

fn verify(&self, msg: &[u8], signature: &S) -> Result<(), Error>

Verify the signature against the given message byte slice using the public key this verifier was instantiated with.

Loading content...

Implementors

Loading content...