identity_iota::iota

Trait DidResolutionHandler

Source
pub trait DidResolutionHandler {
    // Required method
    fn resolve_did<'life0, 'life1, 'async_trait>(
        &'life0 self,
        did: &'life1 IotaDID,
    ) -> Pin<Box<dyn Future<Output = Result<IotaDocument, Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             Self: 'async_trait;
}
Expand description

An extension trait that provides helper functions for publication and resolution of DID documents in identities.

This trait is not intended to be implemented directly, a blanket implementation is provided for [IotaIdentityClient] implementers.

Required Methods§

Source

fn resolve_did<'life0, 'life1, 'async_trait>( &'life0 self, did: &'life1 IotaDID, ) -> Pin<Box<dyn Future<Output = Result<IotaDocument, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Resolve a IotaDocument. Returns an empty, deactivated document if the state metadata of the identity is empty.

§Errors

Implementors§