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:
- Parse the sidecar JSON
- Parse and decode the JWT
- Fetch JWKS from the issuer
- Verify the JWT signature
- Verify the content hash matches the media file
- Verify the media integrity signature
- Verify the capture_id matches between JWT and media_integrity
Returns a ValidationResult with detailed information about each check.