Trait ssi_dids_core::resolution::DIDMethodResolver

source ·
pub trait DIDMethodResolver: DIDMethod {
    // Required method
    async fn resolve_method_representation<'a>(
        &'a self,
        method_specific_id: &'a str,
        options: Options,
    ) -> Result<Output<Vec<u8>>, Error>;

    // Provided method
    fn method_name(&self) -> &str { ... }
}

Required Methods§

source

async fn resolve_method_representation<'a>( &'a self, method_specific_id: &'a str, options: Options, ) -> Result<Output<Vec<u8>>, Error>

Resolves a DID representation using a method specific identifier.

Fetches the DID document representation referenced by the input method specific identifier using the given options.

See: https://www.w3.org/TR/did-core/#did-resolution

Provided Methods§

source

fn method_name(&self) -> &str

Returns the name of the method handled by this resolver.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a, T: DIDMethodResolver> DIDMethodResolver for &'a T

source§

fn method_name(&self) -> &str

source§

async fn resolve_method_representation<'b>( &'b self, method_specific_id: &'b str, options: Options, ) -> Result<Output<Vec<u8>>, Error>

Implementors§