From fc6bf3c947f51f049d22f0f212c95a5f1009bd7e Mon Sep 17 00:00:00 2001 From: Phoebe Lew Date: Wed, 29 Nov 2023 00:29:52 +0000 Subject: [PATCH] Fix up newlines --- packages/credentials/src/verifiable-credential.ts | 4 ---- packages/credentials/tests/verifiable-credential.spec.ts | 1 - 2 files changed, 5 deletions(-) diff --git a/packages/credentials/src/verifiable-credential.ts b/packages/credentials/src/verifiable-credential.ts index cc86aa1e2..4b8ef4a94 100644 --- a/packages/credentials/src/verifiable-credential.ts +++ b/packages/credentials/src/verifiable-credential.ts @@ -213,14 +213,10 @@ export class VerifiableCredential { throw new Error('Signature verification failed: Expected JWS header to contain alg and kid'); } - const verificationResponse = await verifyJWT(vcJwt, { resolver: tbdResolver }); - console.log('hiii'); - - if (!verificationResponse.verified) { throw new Error('VC JWT could not be verified. Reason: ' + JSON.stringify(verificationResponse)); } diff --git a/packages/credentials/tests/verifiable-credential.spec.ts b/packages/credentials/tests/verifiable-credential.spec.ts index d4f9bfbe0..3142e9c5a 100644 --- a/packages/credentials/tests/verifiable-credential.spec.ts +++ b/packages/credentials/tests/verifiable-credential.spec.ts @@ -16,7 +16,6 @@ describe('Verifiable Credential Tests', () => { ) {} } - beforeEach(async () => { const alice = await DidKeyMethod.create(); const [signingKeyPair] = alice.keySet.verificationMethodKeys!;