Skip to main content

DidDocumentProvider

Trait DidDocumentProvider 

Source
pub trait DidDocumentProvider: Send + Sync {
    // Required method
    fn document(&self, did: &str) -> Result<Value>;
}
Expand description

A synchronous DID-document provider for the did:web arm.

Abstracted so the resolver’s decode/assurance core is testable with an injected fixture (no network). Enrollment is off the auth path, so a blocking implementation is acceptable; the trait keeps that policy out of the resolver.

Required Methods§

Source

fn document(&self, did: &str) -> Result<Value>

Fetch and parse the DID document for did (already known to be did:web).

Implementors§