pub trait DidDocResolve: Send + Sync {
// Required method
fn resolve_doc<'life0, 'life1, 'async_trait>(
&'life0 self,
did: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Resolves a peer DID identifier to its DID document JSON.
Implemented for DidWebResolver below (reusing #279’s fetch+cache); a
fixture impl makes the gate testable without a network.
Required Methods§
Implementors§
impl<F: PlcAuditFetcher> DidDocResolve for DidPlcResolver<F>
A configured did:plc resolver can serve the existing federation admission
boundary. Its URL derivation, egress allowlist, cache, and doc.id binding
are all enforced before this gate inspects verification methods.