pub fn validate_did(s: &str) -> Result<()>
A DID string — must start with did: and carry a non-empty, whitespace-free method-specific identifier. Both did:web:… and did:key:… are accepted.
did:
did:web:…
did:key:…