pub fn check_did(field: &str, did: &str) -> Result<()>Expand description
Check did against the DID-core did production (a DID, not a DID URL):
did = "did:" method-name ":" method-specific-id
method-name = 1*method-char ; %x61-7A / DIGIT
method-specific-id = *( *idchar ":" ) 1*idchar
idchar = ALPHA / DIGIT / "." / "-" / "_" / pct-encodedOne DID URL is admitted: a did:scid:vh:1 identity with its ?src=
locator and no other query, path or fragment. The identity is the DID, but
whoever reads these values (the repository’s verifier, a stranger) needs
the source to resolve it, so a bare did:scid:vh:1 is refused here and the
DID URL is required (VTI-KEY-160, VTI-KEY-163).