Identity Resolution#
This module provides helpers for resolving AT Protocol identifiers (handles and DIDs) and fetching DID documents.
Highlights:
- DNS TXT (
_atproto.<handle>) first when compiled with thednsfeature, then HTTPS well-known, then SlingshotresolveHandlewhen configured as PLC source. - DID resolution via did:web well-known or PLC base (PLC Directory or Slingshot), returning a
DidDocResponsethat supports borrowed parsing and validation. - Validation: convenience helpers validate that the fetched DID document
idmatches the requested DID (default on). On mismatch, aDocIdMismatcherror includes the fetched document for callers to inspect. - Slingshot: supports unauthenticated
resolveHandleand a minimal-document endpoint (com.bad-example.identity.resolveMiniDoc). - Auth-aware fallbacks: PDS
resolveHandle/resolveDidavailable via helpers that accept anXrpcClient.
See jacquard::identity::resolver rustdoc for examples.