Skip to main content

compile_evidence_package

Function compile_evidence_package 

Source
pub fn compile_evidence_package(
    verdict: &DeonticVerdict,
    instrument: u64,
    endorser: u64,
    subject: u64,
    now: u32,
    valid_until: u32,
) -> Option<EvidencePackage>
Expand description

Compile a court-admissible evidence package from a Violated verdict: build the breach record, anchor it to its instrument (provenance), and wrap it as an endorsement credential by endorser (the human attestor). None if the verdict is not a violation (nothing to compile). The package is then SIGNED by the identity layer (verifiable_credential::issue) — the engine never holds keys.