Skip to main content

verify_commit_record

Function verify_commit_record 

Source
pub fn verify_commit_record(
    identity: &ProductIdentity,
    source: DistributionSource,
    marker: &[u8],
    product: &[u8],
    archive: &[u8],
    provenance: &[u8],
) -> Result<VerifiedExactCacheCommit, ExactCacheError>
Expand description

Verify that one marker and immutable byte triple belong to the requested full identity and explicit distribution source.

The returned provenance bytes are authenticated by the marker but remain application data. The acquisition interface must parse them and confirm requested/resolved identities and product semantics before accepting a hit.