Skip to main content

domain_to_did_web

Function domain_to_did_web 

Source
pub fn domain_to_did_web(domain: &str) -> String
Expand description

Convert a sanitized domain (with optional port) to a did:web DID.

Per the did:web spec, colons in the domain (from port numbers) are percent-encoded as %3A.