pub fn build_credential_envelope(
cred: &CredentialRecord,
owner_did: &str,
author_did: &str,
asserted_unix: u32,
blob_hash: Option<String>,
) -> RecordEnvelopeExpand description
Build the Restricted record envelope for a credential.
Credentials are third-party attestations, so evidence is ClinicianObserved-style external
assertion rather than self-report; we classify them as Inferred provenance because the local
vault did not observe the underlying fact directly — it holds an issuer’s claim. Epistemic
status is Asserted (the issuer asserts it); trust is expressed via verification_state, not
by weakening the epistemic status.