diff --git a/README.md b/README.md index 707eeb7..d06994e 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/tests/test-mapping.js b/tests/test-mapping.js index a76423b..9ecf3fe 100644 --- a/tests/test-mapping.js +++ b/tests/test-mapping.js @@ -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': { @@ -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': { @@ -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': {