Skip to main content

is_plc_identifier

Function is_plc_identifier 

Source
fn is_plc_identifier(identifier: &str) -> bool
Expand description

Whether identifier is the base32-sortable body of a did:plc.

The specification fixes both the length and the alphabet, and this runs before the identifier is joined into a directory URL: an unvalidated identifier in a path join is how a resolver ends up requesting something other than a DID document.