Skip to main content

verify_moq_frame_with_provenance

Function verify_moq_frame_with_provenance 

Source
pub fn verify_moq_frame_with_provenance(
    verifier: &mut StreamVerifier,
    topic: &str,
    frame: &[u8],
    roster: &dyn PqTrustStore,
    is_enrolled: &dyn Fn(&[u8; 32]) -> bool,
) -> Result<Vec<StreamPayload>>
Expand description

Mesh consumer entry point (#321): verify a moq frame’s chained HMAC + AEAD (via the verifier) AND its per-host provenance signature against a roster.

roster resolves a signer’s anchored ML-DSA-65 key; is_enrolled confirms the signer is a known mesh peer. Provenance is REQUIRED (fail-closed): a block with no/invalid/unknown signer is rejected. Use verify_moq_frame for the non-mesh client path that has no roster.