Skip to main content

DidResolver

Trait DidResolver 

Source
pub trait DidResolver:
    Send
    + Sync
    + 'static {
    // Required method
    fn resolve<'a>(
        &'a self,
        did_url: &'a str,
    ) -> Pin<Box<dyn Future<Output = Result<Option<PublicKey>, Error>> + Send + 'a>>;
}
Expand description

Resolves the DID URLs of methods other than did:key to keys.

Required Methods§

Source

fn resolve<'a>( &'a self, did_url: &'a str, ) -> Pin<Box<dyn Future<Output = Result<Option<PublicKey>, Error>> + Send + 'a>>

The key did_url names, or None when this resolver does not know it.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§