Skip to main content

validate

Function validate 

Source
pub fn validate(
    sidecar_path: &Path,
    media_path: &Path,
) -> Result<ValidationResult>
Expand description

Validate a sidecar file against a media file.

This performs complete validation:

  1. Parse the sidecar JSON
  2. Parse and decode the JWT
  3. Fetch JWKS from the issuer
  4. Verify the JWT signature
  5. Verify the content hash matches the media file
  6. Verify the media integrity signature
  7. Verify the capture_id matches between JWT and media_integrity

Returns a ValidationResult with detailed information about each check.