Skip to main content

is_path_form_did_web

Function is_path_form_did_web 

Source
pub fn is_path_form_did_web(did: &str) -> bool
Expand description

Whether did is a path-form did:web identifier.

The atproto DID profile permits only host-form did:web; any additional colon in the method-specific identifier introduces a path segment. Encoded host ports (%3A) do not contain a literal colon and are deliberately not classified here — this helper answers only the path-form question.