Skip to main content

build_credential_envelope

Function build_credential_envelope 

Source
pub fn build_credential_envelope(
    cred: &CredentialRecord,
    owner_did: &str,
    author_did: &str,
    asserted_unix: u32,
    blob_hash: Option<String>,
) -> RecordEnvelope
Expand 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.