15 — Conformance Testing
15 Conformance Testing
Section titled “15 Conformance Testing”Version: 0.1 (Draft) Date: 15 April 2026 Author: Ed Molyneux
Parent: 00 — Architecture Overview
This specification defines how a software package proves it correctly implements PDTF 2.0. Conformance is established by verifying output against the official test vectors and participating in interop testing.
1. Conformance Levels
Section titled “1. Conformance Levels”Implementations can claim conformance at different levels depending on their scope.
Level 1: Credential Verification
Section titled “Level 1: Credential Verification”The minimum implementation needed by a consumer (e.g. a lender portal or conveyancing CMS) to trust a single PDTF credential.
To claim Level 1, an implementation MUST correctly process all Level 1 test vectors, which cover:
- Credential format validation
- DID resolution (
did:keyanddid:web) - Signature verification for the securing mechanism stated in 02 §2.4: SD-JWT-VC (issuer JWS, Disclosure digests, Key Binding JWT)
- Status list resolution and entry checking for the mechanism stated in 14 §1: Token Status List
- OpenID Federation trust resolution and Trust Mark
delegationauthorisation checks
Level 2: Entity State Assembly
Section titled “Level 2: Entity State Assembly”Required for systems that compose the entity graph and manage transaction state.
To claim Level 2, an implementation MUST pass Level 1, plus all Level 2 test vectors covering:
- Deep merge semantics
- Schema-driven dependency pruning (e.g. stripping stale branches when discriminators change)
- Overlapping credentials across multiple issuers
- Conflict surfacing
Level 3: Dual-State Extraction
Section titled “Level 3: Dual-State Extraction”Required for platforms that bridge PDTF 2.0 verifiable credentials to legacy PDTF v1/v3 JSON structures.
To claim Level 3, an implementation MUST pass Level 2, plus all Level 3 test vectors covering:
composeV3StateFromGraphgeneration- Mapping array elements back to legacy structures
- Handling
v4entity collection semantics (e.g. ID-keyed objects to lists)
2. Test Vectors
Section titled “2. Test Vectors”The official test suite is hosted in the property-data-standards-co/conformance repository.
Test vectors are provided as static JSON fixtures. Implementations SHOULD download these fixtures during their CI test runs and verify that their libraries produce the expected pass/fail output for each.
2.1 Vector Structure
Section titled “2.1 Vector Structure”Each test category contains a manifest.json describing the test cases:
{ "category": "vc-verification", "tests": [ { "id": "vc-valid-epc", "description": "A valid EPC credential secured as SD-JWT-VC (EdDSA)", "input": "fixtures/valid/epc-1.sd-jwt", "representation": "sd-jwt-vc", "expect": "pass" }, { "id": "vc-invalid-signature", "description": "An EPC credential where the subject data has been tampered with after signing", "input": "fixtures/invalid/tampered-epc-1.sd-jwt", "representation": "sd-jwt-vc", "expect": "fail", "failReason": "signature_mismatch" } ]}2.2 Test Categories
Section titled “2.2 Test Categories”- VC Verification: Valid VCs, tampered subjects, tampered or missing Disclosures, invalid Key Binding JWTs, invalid dates, missing required fields.
- DID Resolution: Valid
did:keyderivations, validdid:webdocuments, incorrectassertionMethodarrays, key format errors. - Status Lists: Active credentials, revoked credentials, suspended credentials, out-of-bounds indices, unsigned or wrongly-signed status lists.
- Federation Trust Resolution: Trust Mark
delegation.authorised_pathscoverage, unauthorised paths, wildcard matching (e.g.Title:*), trust level inheritance. - State Assembly: Pruning tests (e.g. changing
heatingTypeto “None” and ensuringcentralHeatingDetailsis stripped).
3. Interoperability Protocol
Section titled “3. Interoperability Protocol”Test vectors prove a library works in isolation. Interoperability testing proves that two independent implementations can exchange data.
If a vendor implements PDTF in a language other than the reference implementations (TypeScript, Rust, Python, .NET), they MUST successfully complete an interop test with @pdtf/core before claiming full PDTF 2.0 support.
The interop protocol requires:
- Vendor implementation issues and signs a VC.
- Reference implementation successfully verifies the VC, including signature and status list checks.
- Reference implementation issues and signs a VC.
- Vendor implementation successfully verifies the VC, including signature and status list checks.
This document is part of the PDTF 2.0 specification suite. For the complete list of sub-specs, see 00 — Architecture Overview.