Skip to content

Commit

Permalink
chore: removed defaultKms from DID providers
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderPostma committed Dec 3, 2024
1 parent 3bac089 commit dccb084
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<IKeyManager & DIDManager & IResolver>({
plugins: [
Expand Down
4 changes: 1 addition & 3 deletions packages/did-provider-jwk/__tests__/jwk-did-provider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<IKeyManager, DIDManager>({
plugins: [
Expand Down
4 changes: 1 addition & 3 deletions packages/did-provider-key/__tests__/key-did-provider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<IKeyManager, DIDManager>({
plugins: [
Expand Down
4 changes: 1 addition & 3 deletions packages/identifier-resolution/__tests__/localAgent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ let agent: TAgent<IKeyManager & IDIDManager & IIdentifierResolution>

const DID_METHOD = 'did:jwk'

const jwkDIDProvider = new JwkDIDProvider({
defaultKms: 'mem',
})
const jwkDIDProvider = new JwkDIDProvider()

const setup = async (): Promise<boolean> => {
const db: OrPromise<DataSource> = new DataSource({
Expand Down
4 changes: 1 addition & 3 deletions packages/identifier-resolution/__tests__/restAgent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<IKeyManager & IDIDManager & IIdentifierResolution>
Expand Down
4 changes: 1 addition & 3 deletions packages/jwt-service/__tests__/localAgent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ let agent: TAgent<IKeyManager & IDIDManager & IIdentifierResolution & IJwtServic

const DID_METHOD = 'did:jwk'

const jwkDIDProvider = new JwkDIDProvider({
defaultKms: 'mem',
})
const jwkDIDProvider = new JwkDIDProvider()

const setup = async (): Promise<boolean> => {
const db: OrPromise<DataSource> = new DataSource({
Expand Down
4 changes: 1 addition & 3 deletions packages/jwt-service/__tests__/restAgent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<IKeyManager & IDIDManager & IIdentifierResolution & IJwtService>
Expand Down

0 comments on commit dccb084

Please sign in to comment.