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§
Sourcefn 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,
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
DID resolution failed
if the DID could not be resolved.