From dccb084db15488aac99f76f6c615784a5e3352cf Mon Sep 17 00:00:00 2001 From: sanderPostma Date: Tue, 3 Dec 2024 15:26:59 +0100 Subject: [PATCH] chore: removed defaultKms from DID providers --- .../did-provider-jwk/__tests__/comparison-regression.test.ts | 4 +--- packages/did-provider-jwk/__tests__/jwk-did-provider.test.ts | 4 +--- packages/did-provider-key/__tests__/key-did-provider.test.ts | 4 +--- packages/identifier-resolution/__tests__/localAgent.test.ts | 4 +--- packages/identifier-resolution/__tests__/restAgent.test.ts | 4 +--- packages/jwt-service/__tests__/localAgent.test.ts | 4 +--- packages/jwt-service/__tests__/restAgent.test.ts | 4 +--- 7 files changed, 7 insertions(+), 21 deletions(-) diff --git a/packages/did-provider-jwk/__tests__/comparison-regression.test.ts b/packages/did-provider-jwk/__tests__/comparison-regression.test.ts index 225dfe65..3933ac97 100644 --- a/packages/did-provider-jwk/__tests__/comparison-regression.test.ts +++ b/packages/did-provider-jwk/__tests__/comparison-regression.test.ts @@ -15,9 +15,7 @@ const method = require('@or13/did-jwk') const DID_METHOD = 'did:jwk' -const jwkDIDProvider = new JwkDIDProvider({ - defaultKms: 'mem', -}) +const jwkDIDProvider = new JwkDIDProvider() const agent = createAgent({ plugins: [ diff --git a/packages/did-provider-jwk/__tests__/jwk-did-provider.test.ts b/packages/did-provider-jwk/__tests__/jwk-did-provider.test.ts index 5cd3e071..c52d69cd 100644 --- a/packages/did-provider-jwk/__tests__/jwk-did-provider.test.ts +++ b/packages/did-provider-jwk/__tests__/jwk-did-provider.test.ts @@ -10,9 +10,7 @@ import { JwkKeyUse } from '@sphereon/ssi-sdk-ext.key-utils' const DID_METHOD = 'did:jwk' const PRIVATE_KEY_HEX = '7dd923e40f4615ac496119f7e793cc2899e99b64b88ca8603db986700089532b' -const jwkDIDProvider = new JwkDIDProvider({ - defaultKms: 'mem', -}) +const jwkDIDProvider = new JwkDIDProvider() const agent = createAgent({ plugins: [ diff --git a/packages/did-provider-key/__tests__/key-did-provider.test.ts b/packages/did-provider-key/__tests__/key-did-provider.test.ts index 1ab91d73..f6ebe675 100644 --- a/packages/did-provider-key/__tests__/key-did-provider.test.ts +++ b/packages/did-provider-key/__tests__/key-did-provider.test.ts @@ -13,9 +13,7 @@ const PRIVATE_KEY_HEX = '7dd923e40f4615ac496119f7e793cc2899e99b64b88ca8603db9867 // const jwk = toJwk(PRIVATE_KEY_HEX, 'Secp256k1', { isPrivateKey: true }) // console.log(JSON.stringify(jwk, null, 2)) -const keyDIDProvider = new SphereonKeyDidProvider({ - defaultKms: 'mem', -}) +const keyDIDProvider = new SphereonKeyDidProvider() const agent = createAgent({ plugins: [ diff --git a/packages/identifier-resolution/__tests__/localAgent.test.ts b/packages/identifier-resolution/__tests__/localAgent.test.ts index 7749da6b..74c094ca 100644 --- a/packages/identifier-resolution/__tests__/localAgent.test.ts +++ b/packages/identifier-resolution/__tests__/localAgent.test.ts @@ -22,9 +22,7 @@ let agent: TAgent const DID_METHOD = 'did:jwk' -const jwkDIDProvider = new JwkDIDProvider({ - defaultKms: 'mem', -}) +const jwkDIDProvider = new JwkDIDProvider() const setup = async (): Promise => { const db: OrPromise = new DataSource({ diff --git a/packages/identifier-resolution/__tests__/restAgent.test.ts b/packages/identifier-resolution/__tests__/restAgent.test.ts index 6b78a107..645efb0a 100644 --- a/packages/identifier-resolution/__tests__/restAgent.test.ts +++ b/packages/identifier-resolution/__tests__/restAgent.test.ts @@ -29,9 +29,7 @@ const basePath = '/agent' const DID_METHOD = 'did:jwk' -const jwkDIDProvider = new JwkDIDProvider({ - defaultKms: 'mem', -}) +const jwkDIDProvider = new JwkDIDProvider() let serverAgent: IAgent let clientAgent: TAgent diff --git a/packages/jwt-service/__tests__/localAgent.test.ts b/packages/jwt-service/__tests__/localAgent.test.ts index e3e0e901..e2720b84 100644 --- a/packages/jwt-service/__tests__/localAgent.test.ts +++ b/packages/jwt-service/__tests__/localAgent.test.ts @@ -23,9 +23,7 @@ let agent: TAgent => { const db: OrPromise = new DataSource({ diff --git a/packages/jwt-service/__tests__/restAgent.test.ts b/packages/jwt-service/__tests__/restAgent.test.ts index 7760913e..d7a0d9a1 100644 --- a/packages/jwt-service/__tests__/restAgent.test.ts +++ b/packages/jwt-service/__tests__/restAgent.test.ts @@ -30,9 +30,7 @@ const basePath = '/agent' const DID_METHOD = 'did:jwk' -const jwkDIDProvider = new JwkDIDProvider({ - defaultKms: 'mem', -}) +const jwkDIDProvider = new JwkDIDProvider() let serverAgent: IAgent let clientAgent: TAgent