Skip to main content

resolve_handle_to_did

Function resolve_handle_to_did 

Source
pub fn resolve_handle_to_did(_handle: &str) -> Result<String, String>
Expand description

Resolve a bare handle (e.g. alice.example.com) to a DID.

STUB — atproto handles are mutable and resolve via DID discovery; the live getRecord/DID-resolution path is not wired here yet. Callers that already hold a DID should pass it directly to CanonicalSubject::new; this function exists so the handle→DID seam is explicit and fail-closed (a real handle is rejected, not silently treated as a DID).