pub fn subject_did_for(
_issuer_url: &str,
subject: &str,
) -> Result<String, SubjectDidError>Expand description
Validate that a subject is a real, resolvable atproto account DID (#1113 rev2 → #1124 split).
The atproto DID profile (@atproto/did) accepts only:
did:plc:<opaque>— the registered PLC-directory form.did:web:<host>[:port]— the host-form only (NO path component);did:web:host:users:aliceis explicitly rejected by the atproto DID profile.
Hyprstream-local accounts (enrolled by Ed25519 username) do NOT yet carry
a real atproto DID — provisioning one is tracked in #1124. Such accounts
are REJECTED from the atproto profile (fail closed with
SubjectDidError::NoAtprotoIdentity) rather than being minted a
spec-invalid path-form did:web. This function performs DID-form
validation, not a string-prefix match — an at9p-backed account whose
enrolled identifier is a plain username is rejected just like any other
non-DID subject.