Trait cyfs_base::Verifier

source ·
pub trait Verifier: Send + Sync {
    // Required methods
    fn public_key(&self) -> &PublicKey;
    fn verify<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        data: &'life1 [u8],
        sign: &'life2 Signature
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

source

fn public_key(&self) -> &PublicKey

source

fn verify<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, data: &'life1 [u8], sign: &'life2 Signature ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Trait Implementations§

source§

impl Verifier for Box<dyn Verifier>

source§

fn public_key(&self) -> &PublicKey

source§

fn verify<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, data: &'life1 [u8], sign: &'life2 Signature ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementations on Foreign Types§

source§

impl Verifier for Box<dyn Verifier>

source§

fn public_key(&self) -> &PublicKey

source§

fn verify<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, data: &'life1 [u8], sign: &'life2 Signature ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§