Skip to main content

verify_provenance

Function verify_provenance 

Source
pub fn verify_provenance(
    signer_kid: &[u8],
    sig: &[u8],
    signed_region: &[u8],
    roster: &dyn PqTrustStore,
    is_enrolled: &dyn Fn(&[u8; 32]) -> bool,
) -> Result<()>
Expand description

Verify a StreamBlock’s provenance (#321), fail-closed.

roster resolves the signer’s anchored ML-DSA-65 key (the mesh KeyedPqTrustStore); is_enrolled confirms the signer’s Ed25519 key is a known/enrolled mesh peer. Rejects on missing/unknown/invalid signer.

signed_region is the provenance-cleared block encoding (see module docs); signer_kid/sig come from the wire StreamBlock.provenance field.