1 2 3 4 5 6 7 8 9 10 11 12 13 14
use crate::{PublicKey, Signature};
use ockam_core::Result;
use zeroize::Zeroize;
/// Signature verification functionality
pub trait Verifier: Zeroize {
/// Verify a signature for given data using given public key
fn verify(
&mut self,
signature: &Signature,
public_key: &PublicKey,
data: &[u8],
) -> Result<bool>;
}