Trait tink_core::Verifier[][src]

pub trait Verifier: VerifierBoxClone {
    fn verify(&self, signature: &[u8], data: &[u8]) -> Result<(), TinkError>;
}
Expand description

Verifier is the verifying interface for digital signature.

Implementations of this trait are secure against adaptive chosen-message attacks. Signing data ensures authenticity and integrity of that data, but not its secrecy.

Required methods

Returns Ok(()) if signature is a valid signature for data; otherwise returns an error.

Implementors