From 5c0da1b8adbbed9da5136b7b2839e564b4b06f65 Mon Sep 17 00:00:00 2001 From: Liran Cohen Date: Wed, 14 Aug 2024 10:29:59 -0400 Subject: [PATCH 1/2] add did:jwk to default resolers, remove did:ion --- src/dwn.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dwn.ts b/src/dwn.ts index 0e19e3d11..01e2c82ae 100644 --- a/src/dwn.ts +++ b/src/dwn.ts @@ -29,7 +29,7 @@ import { RecordsSubscribeHandler } from './handlers/records-subscribe.js'; import { RecordsWriteHandler } from './handlers/records-write.js'; import { ResumableTaskManager } from './core/resumable-task-manager.js'; import { StorageController } from './store/storage-controller.js'; -import { DidDht, DidIon, DidKey, DidResolverCacheLevel, UniversalResolver } from '@web5/dids'; +import { DidDht, DidJwk, DidKey, DidResolverCacheLevel, UniversalResolver } from '@web5/dids'; import { DwnInterfaceName, DwnMethodName } from './enums/dwn-interface-method.js'; export class Dwn { @@ -126,7 +126,7 @@ export class Dwn { */ public static async create(config: DwnConfig): Promise { config.didResolver ??= new UniversalResolver({ - didResolvers : [DidDht, DidIon, DidKey], + didResolvers : [DidDht, DidJwk, DidKey ], cache : new DidResolverCacheLevel({ location: 'RESOLVERCACHE' }), }); config.tenantGate ??= new AllowAllTenantGate(); From b9aa447c7aa4524009f26ec99c9cfb513b9fe478 Mon Sep 17 00:00:00 2001 From: Liran Cohen Date: Wed, 14 Aug 2024 10:38:02 -0400 Subject: [PATCH 2/2] npm audit fix elliptic ECDSA vulns. CVE-2024-42459, CVE-2024-42460, CVE-2024-42461 --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 368476bb8..67f1575c0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2725,9 +2725,9 @@ "dev": true }, "node_modules/elliptic": { - "version": "6.5.4", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz", - "integrity": "sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==", + "version": "6.5.7", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.7.tgz", + "integrity": "sha512-ESVCtTwiA+XhY3wyh24QqRGBoP3rEdDUl3EDUUo9tft074fi19IrdpH7hLCMMP3CIj7jb3W96rn8lt/BqIlt5Q==", "dev": true, "dependencies": { "bn.js": "^4.11.9",