Trait SignatureVerifier

Source
pub trait SignatureVerifier {
    // Required methods
    fn verify(&self, data: &[u8], signature: &[u8]) -> bool;
    fn certificate(&self) -> Option<Certificate>;
    fn from_data(data: Data<Bytes>) -> Option<Self>
       where Self: Sized;
}

Required Methods§

Source

fn verify(&self, data: &[u8], signature: &[u8]) -> bool

Source

fn certificate(&self) -> Option<Certificate>

Source

fn from_data(data: Data<Bytes>) -> Option<Self>
where Self: Sized,

Implementations on Foreign Types§

Source§

impl<T> SignatureVerifier for &T

Source§

fn verify(&self, data: &[u8], signature: &[u8]) -> bool

Source§

fn certificate(&self) -> Option<Certificate>

Source§

fn from_data(_data: Data<Bytes>) -> Option<Self>
where Self: Sized,

Implementors§