mithril_client::certificate_client

Trait CertificateVerifier

source
pub trait CertificateVerifier: Sync + Send {
    // Required method
    fn verify_chain<'life0, 'life1, 'async_trait>(
        &'life0 self,
        certificate: &'life1 MithrilCertificate,
    ) -> Pin<Box<dyn Future<Output = MithrilResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

API that defines how to validate certificates.

Required Methods§

source

fn verify_chain<'life0, 'life1, 'async_trait>( &'life0 self, certificate: &'life1 MithrilCertificate, ) -> Pin<Box<dyn Future<Output = MithrilResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Validate the chain starting with the given certificate.

Implementors§