Trait signatory::Verifier [−][src]
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.