[][src]Trait dsf_core::crypto::Validator

pub trait Validator {
    type Error;
    fn validate(
        &self,
        id: &Id,
        sig: &Signature,
        data: &[u8]
    ) -> Result<bool, Self::Error>; }

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

Associated Types

type Error

Loading content...

Required methods

fn validate(
    &self,
    id: &Id,
    sig: &Signature,
    data: &[u8]
) -> Result<bool, Self::Error>

Loading content...

Implementors

Loading content...