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§
sourceasync fn resolve_method_representation<'a>(
&'a self,
method_specific_id: &'a str,
options: Options,
) -> Result<Output<Vec<u8>>, Error>
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.
Provided Methods§
sourcefn method_name(&self) -> &str
fn method_name(&self) -> &str
Returns the name of the method handled by this resolver.
Object Safety§
This trait is not object safe.