From 950891eedbd68cb529513ba0ffb10e6e584bf7b5 Mon Sep 17 00:00:00 2001 From: Nam Hoang Date: Tue, 7 Nov 2023 13:55:45 +0700 Subject: [PATCH 1/2] fix: handle supportedProofFormats optional for revocation list Signed-off-by: Nam Hoang --- .../src/revocation-list-2020-middleware.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/revocation-list-2020/src/revocation-list-2020-middleware.ts b/packages/revocation-list-2020/src/revocation-list-2020-middleware.ts index 4636342f..0ef6980c 100644 --- a/packages/revocation-list-2020/src/revocation-list-2020-middleware.ts +++ b/packages/revocation-list-2020/src/revocation-list-2020-middleware.ts @@ -33,7 +33,8 @@ export function revocationList2020Middleware(args: { if ( !req.body || !args.apiRoutes.includes(req.path) || - !args.supportedProofFormats.includes(req.body.proofFormat) + (args.supportedProofFormats && + !args.supportedProofFormats.includes(req.body.proofFormat)) ) { next(); return; From ab623c3293d34c23d9f98e09dbbe5932b41dbab7 Mon Sep 17 00:00:00 2001 From: Nam Hoang Date: Wed, 22 Nov 2023 10:41:35 +0700 Subject: [PATCH 2/2] chore: change context Signed-off-by: Nam Hoang --- .../example-documents/src/examples/CertificationOfOrigin.json | 2 +- .../src/examples/UniversityDegreeCredential.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/example-documents/src/examples/CertificationOfOrigin.json b/packages/example-documents/src/examples/CertificationOfOrigin.json index 0f810191..36bcd944 100644 --- a/packages/example-documents/src/examples/CertificationOfOrigin.json +++ b/packages/example-documents/src/examples/CertificationOfOrigin.json @@ -5,7 +5,7 @@ "https://dev-dvp-context.s3.ap-southeast-2.amazonaws.com/AANZFTA-CoO-Context-Partial.json", "https://w3id.org/vc-revocation-list-2020/v1", "https://w3id.org/security/suites/jws-2020/v1", - "https://dev-render-method-context.s3.ap-southeast-1.amazonaws.com/dev-render-method-context.json" + "https://vckit-contexts.s3.ap-southeast-2.amazonaws.com/dev-render-method-context.json" ], "type": ["VerifiableCredential"], "issuer": "did:web:localhost%3A4566:did-documents-bucket:jvtrkl45qubg", diff --git a/packages/example-documents/src/examples/UniversityDegreeCredential.json b/packages/example-documents/src/examples/UniversityDegreeCredential.json index 0e1a2348..4f5f45e9 100644 --- a/packages/example-documents/src/examples/UniversityDegreeCredential.json +++ b/packages/example-documents/src/examples/UniversityDegreeCredential.json @@ -2,7 +2,7 @@ "@context": [ "https://www.w3.org/2018/credentials/v1", "https://www.w3.org/2018/credentials/examples/v1", - "https://dev-render-method-context.s3.ap-southeast-1.amazonaws.com/dev-render-method-context.json" + "https://vckit-contexts.s3.ap-southeast-2.amazonaws.com/dev-render-method-context.json" ], "id": "http://example.edu/credentials/3732", "type": ["VerifiableCredential", "UniversityDegreeCredential"],