pub fn did_plc_url(did: &str, base_url: &Url) -> Result<String>Expand description
Derive the DID-document URL for a did:plc identifier beneath base_url:
{base_url}/{full-did}.
The base URL’s path is treated as a directory (a trailing / is added if
absent), so a base of https://plc.example/mirror resolves
did:plc:{msi} to https://plc.example/mirror/did:plc:{msi}.
Fail-closed: returns Err for a non-did:plc or non-conformant identifier
([plc_msi]), and refuses — as defense in depth — any derived URL whose
origin is not exactly the configured base URL’s origin.