Skip to main content

verify_bundle

Function verify_bundle 

Source
pub fn verify_bundle(
    bundle: &OfflineBundle,
    trust_root: &TrustRoot,
    now: DateTime<Utc>,
) -> BundleVerificationReport
Expand description

Verifies an offline transparency bundle against a trust root.

Each verification dimension (signature, inclusion, checkpoint, witnesses, namespace, delegation) is evaluated independently so callers can make nuanced trust decisions.

Args:

  • bundle — The offline bundle to verify.
  • trust_root — Trusted log public key and witness set.
  • now — Current wall-clock time (injected, never read from system clock).

Usage:

let report = verify_bundle(&bundle, &trust_root, now);
if report.is_valid() {
    // bundle is trustworthy
}