pub struct HttpIdentityResolver { /* private fields */ }Expand description
HTTP-backed implementation of IdentityResolver.
Calls a remote registry endpoint to resolve DIDs to their current cryptographic material.
Usage:
ⓘ
use auths_infra_http::HttpIdentityResolver;
let resolver = HttpIdentityResolver::new("https://registry.example.com");
let identity = resolver.resolve_identity("did:keri:EAbcdef...").await?;Implementations§
Trait Implementations§
Source§impl IdentityResolver for HttpIdentityResolver
impl IdentityResolver for HttpIdentityResolver
Source§fn resolve_identity(
&self,
did: &str,
) -> impl Future<Output = Result<ResolvedIdentity, ResolutionError>> + Send
fn resolve_identity( &self, did: &str, ) -> impl Future<Output = Result<ResolvedIdentity, ResolutionError>> + Send
Resolves a DID string to its current public key and method metadata. Read more
Auto Trait Implementations§
impl Freeze for HttpIdentityResolver
impl !RefUnwindSafe for HttpIdentityResolver
impl Send for HttpIdentityResolver
impl Sync for HttpIdentityResolver
impl Unpin for HttpIdentityResolver
impl UnsafeUnpin for HttpIdentityResolver
impl !UnwindSafe for HttpIdentityResolver
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more