Skip to main content

verify_frame_attestation

Function verify_frame_attestation 

Source
pub fn verify_frame_attestation(
    provider_id: &str,
    frame: &ContextFrame,
    attestation: &ProvenanceAttestation,
    public_key: &[u8],
) -> AttestationVerdict
Expand description

Verify a detached attestation over a single frame (SPEC.md §6.5.4).

Pure and offline. public_key is raw bytes rather than an ed25519_dalek type on purpose: the public API of this crate names no cryptography library, so the backend can be replaced — or a post-quantum scheme added — without a breaking change to callers.