Skip to main content

endorsement_credential

Function endorsement_credential 

Source
pub fn endorsement_credential(
    record: NQuin,
    endorser: u64,
    subject: u64,
    issued_at: u32,
    valid_until: u32,
) -> Credential
Expand description

Build the endorsement envelope: the Curation-Directive attestation that wraps a breach record as a Credential claim. endorser is the attesting (human) agent; subject is the party the breach concerns. Unsigned — the identity layer signs it with the endorser’s key via verifiable_credential::issue, then anyone verifies with verifiable_credential::verify. Authenticates ORIGIN (who endorsed), not truth.