Skip to main content

PlcAuditFetcher

Trait PlcAuditFetcher 

Source
pub trait PlcAuditFetcher: DidDocFetcher {
    // Required method
    fn fetch_audit<'life0, 'life1, 'async_trait>(
        &'life0 self,
        url: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

A PLC fetcher must provide both the current DID document and its audit log.

Keeping the audit fetch in the resolver’s required interface makes it impossible to instantiate a resolver that silently skips chain verification.

Required Methods§

Source

fn fetch_audit<'life0, 'life1, 'async_trait>( &'life0 self, url: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§