Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
decentralgabe committed Dec 13, 2024
1 parent b9de4dd commit 800b861
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ This file defines the structure of the test suite. It exports two main objects:
Base64 string (COSE), or SD-JWT string (Selective Disclosure JWT)
- `key_file`: The name of the key file to be used, representing a Verification Method
- `fn`: The function being tested either `issue` or `verify`
- `disclosure_paths`: An array of paths to be disclosed in a Selective Disclosure JWT (e.g. `["issuer", "validFrom", "credentialSubject.id"]`)
- `feature`: The function being tested, one of `credential_jose`, `credential_cose`, `credential_sdjwt`,
`presentation_jose`, `presentation_cose`, or `presentation_sdjwt`
- `expected_result`: The expected outcome of the test
Expand Down
6 changes: 3 additions & 3 deletions tests/test-mapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ export const SDJWTTestMapping = {
'key_file': TestVerificationMethods.p384,
'fn': TestFunction.issue,
'feature': TestFeature.credential_sdjwt,
'expected_result': TestResult.success,
'disclosure_paths': ['credentialSubject.firstName', 'credentialSubject.lastName'],
'expected_result': TestResult.success,
},

'10. SD-JWT Complex Credential Issuance': {
Expand All @@ -162,8 +162,8 @@ export const SDJWTTestMapping = {
'key_file': TestVerificationMethods.p521,
'fn': TestFunction.issue,
'feature': TestFeature.credential_sdjwt,
'expected_result': TestResult.success,
'disclosure_paths': ['credentialSubject.address.street', 'credentialSubject.address.city', 'credentialSubject.phoneNumbers[0]'],
'expected_result': TestResult.success,
},

'11. SD-JWT Presentation Issuance': {
Expand All @@ -172,8 +172,8 @@ export const SDJWTTestMapping = {
'key_file': TestVerificationMethods.p384,
'fn': TestFunction.issue,
'feature': TestFeature.presentation_sdjwt,
'expected_result': TestResult.success,
'disclosure_paths': ['holder', 'verifiableCredential[0]'],
'expected_result': TestResult.success,
},

'12. SD-JWT Basic Credential Verification': {
Expand Down

0 comments on commit 800b861

Please sign in to comment.