Description
This issue outlines gaps in testing of Presentation Exchange v2.1.1 in conjunction with the W3C VCDM v1.1. Tasks may have partial test coverage today (linked if true). If sufficient test coverage already exists, please close the task and link the relevant test.
Tasks may need discussion on the best way to approach them. The goal is to create a set of language agnostic test vectors that give us sufficient confidence in maintaining interoperability of features between implementations.
https://tbd54566975.github.io/web5-spec/#presentation-exchange
Presentation Definitions / Presentation Requests
-
Create a Presentation Definition today's tests
- Validate it against its JSON Schema
- Support multiple input descriptors
- Support predicates
- Support relational constraints (multiple paths, JSON Schema, Regex)
- Support credential status
- Pull in PD test vectors from
web5-kt
-
Sign and Verify Presentation Definitions as JWT Presentation Requests today's tests
- Valid DID / Invalid DID (unavailable, expected key material not present)
- Valid Signature / Invalid signature
Presentation Submissions
-
Create a Presentation Submission today's tests
- Validate it against its JSON schema
- Build from a Presentation Definition and a set of credentials (can fulfill/cannot fulfill) today's tests
-
Sign and Verify a Presentation Submission as a VP-JWT today's tests
- Valid DID / Invalid DID (unavailable, expected key material not present)
- Valid Signature / Invalid signature
- Conforms to Presentation Definition today's tests
- Valid credentials
- Relational constraints
- Status
- Predicate(s)
- Does not conform to Presentation Definition today's test
- Missing credential(s), invalid credentials (bad signature, no signature, unable to verify)
- Invalid relational constraints
- Invalid status
- Invalid predicate(s)