Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Vectors - Presentation Exchange #171

Open
4 tasks
decentralgabe opened this issue Aug 16, 2024 · 2 comments
Open
4 tasks

Test Vectors - Presentation Exchange #171

decentralgabe opened this issue Aug 16, 2024 · 2 comments
Labels
pex presentation exchange testing related to new or existing tests

Comments

@decentralgabe
Copy link
Member

decentralgabe commented Aug 16, 2024

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)
@nitro-neal
Copy link
Contributor

you think these vectors should be lifted and cleaned added to web5-spec? Pull in PD test vectors from web5-kt

They were originally made for unit testing small features / chunks

@decentralgabe
Copy link
Member Author

@nitro-neal yes, those look like a great place to start for this work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pex presentation exchange testing related to new or existing tests
Projects
Status: No status
Development

No branches or pull requests

2 participants