pub fn did_to_url(did: &str) -> Result<String>Expand description
Convert a did:web DID to the HTTPS URL where the DID Document is hosted.
Rules (per spec):
did:web:example.com→https://example.com/.well-known/did.jsondid:web:example.com:path:to→https://example.com/path/to/did.jsondid:web:example.com%3A3000→https://example.com:3000/.well-known/did.json
Colons in the method-specific identifier are path separators.
Percent-encoded characters (like %3A for :) are decoded.
Rejects domains that resolve to private/reserved IP ranges (SSRF protection)
and path segments containing .. (path traversal protection).