Skip to main content

write_source_build_provenance

Function write_source_build_provenance 

Source
pub fn write_source_build_provenance(
    cog_dir: &Path,
    binary: &Path,
) -> Result<(), PackError>
Expand description

Record an operator’s own source build in <cog_dir>/provenance.json (trust = "source-build", with the sha256 of binary), which is what pack --redistributable accepts as evidence the binary is not a licensed Cognitum one. One provenance describes one binary.