pub trait Validator {
type Error;
// Required method
fn validate(
&self,
id: &Id,
sig: &Signature,
data: &[u8],
) -> Result<bool, Self::Error>;
}
Expand description
Validator trait, used for checking page signatures. This should return Ok(true) for success, Ok(false) for an unknown ID:Key pair or an error on a signature mismatch