Skip to main content

decode_authority

Function decode_authority 

Source
fn decode_authority(identifier: &str) -> Result<String, DidError>
Expand description

Turns the method-specific identifier into a decoded host or host:port.

Deliberately not a general percent decoder. %3A is the only escape an atproto did:web has any reason to contain, and a general decoder is exactly how a crafted DID smuggles a path separator into a fetch URL.