pub fn normalize_root(value: &str) -> Result<String>Expand description
The DID a trusted root names, exactly as the Python reference reads it: a full DID is kept as it is (a did:web must parse); a bare domain (“yourcompany.com”, or “yourcompany.com:8443” with a port) becomes its did:web identifier (“did:web:yourcompany.com%3A8443”). Anything else, such as an IP literal, a non-punycode international name, a trailing dot, a bad port, a URL or a path, is refused.