Format Verification Policy Reference

This reference documents the format verification policy for the verifier service. The format policy validates that credentials and presentations conform to supported standards and data structures.

Policy Overview

The format verification policy is the first check in the verification process and ensures that the credential or presentation is structured correctly according to supported standards. It validates the data format, required fields, and structural integrity before proceeding with more specific verification checks.

Supported Standards

The format verification policy supports standards from multiple standards organizations:

StandardOrganizationSpecificationRelated FormatsFormat Verification Aspects
JSON-LD 1.1W3CJSON-LD 1.1W3C VCs, Data IntegrityLinked data context validation, @context resolution
JSON Web Token (JWT)IETFRFC 7519JWT CredentialsJWT structure, header validation, claims format
SD-JWT VCIETFSD-JWT DraftSD-JWT CredentialsJWT structure, disclosure format, binding validation
ISO 18013-5:2021ISOISO 18013-5Mobile Driving LicenseData elements, document structure, security features
Verifiable Credentials Data Model v1.1W3CVC Data Model v1.1W3C VCsJSON-LD context, credential types, required properties
Verifiable Credentials Data Model v2.0W3CVC Data Model v2.0W3C VCsUpdated JSON-LD context, credential structure

Format Verification Process

When validating format, the policy performs the following checks:

  1. Format detection - Identifies the format of the input (W3C VC, JWT, SD-JWT, etc.)
  2. Structure validation - Verifies the overall structure follows the expected format
  3. Context validation - For JSON-LD, validates the @context values
  4. Type validation - Ensures the credential has the expected type values
  5. Required fields - Checks that all required fields for the format are present
  6. Format-specific validation - Applies additional checks based on the detected format

Configuration

The format verification policy offers various configuration options that control its behavior, including:

  • Specifying supported formats and versions

For detailed configuration options, parameters, and default values, see the Verifier Configuration Reference.