pub trait VerificationMethodResolver {
    type Method: Clone;

    // Required method
    async fn resolve_verification_method_with(
        &self,
        issuer: Option<&Iri>,
        method: Option<ReferenceOrOwnedRef<'_, Self::Method>>,
        options: ResolutionOptions,
    ) -> Result<Cow<'_, Self::Method>, VerificationMethodResolutionError>;

    // Provided method
    async fn resolve_verification_method(
        &self,
        issuer: Option<&Iri>,
        method: Option<ReferenceOrOwnedRef<'_, Self::Method>>,
    ) -> Result<Cow<'_, Self::Method>, VerificationMethodResolutionError> { ... }
}

Required Associated Types§

source

type Method: Clone

Verification method type.

Required Methods§

source

async fn resolve_verification_method_with( &self, issuer: Option<&Iri>, method: Option<ReferenceOrOwnedRef<'_, Self::Method>>, options: ResolutionOptions, ) -> Result<Cow<'_, Self::Method>, VerificationMethodResolutionError>

Resolve the verification method reference.

Provided Methods§

source

async fn resolve_verification_method( &self, issuer: Option<&Iri>, method: Option<ReferenceOrOwnedRef<'_, Self::Method>>, ) -> Result<Cow<'_, Self::Method>, VerificationMethodResolutionError>

Resolve the verification method reference with the default options.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'t, T: VerificationMethodResolver> VerificationMethodResolver for &'t T

source§

impl<M: VerificationMethod> VerificationMethodResolver for HashMap<IriBuf, M>

Implementors§