Skip to content

Commit

Permalink
Add did:jwk to default resolvers, remove did:ion (#793)
Browse files Browse the repository at this point in the history
- Adding `did:jwk` to the default resolvers list
- Removing `did:ion` from the default resolvers list as the TBD
`did:ion` gateway is no longer active
- npm audit fix elliptic ECDSA vulns. CVE-2024-42459, CVE-2024-42460,
CVE-2024-42461
  • Loading branch information
LiranCohen authored Aug 14, 2024
1 parent a7543fc commit 39c485c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/dwn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -126,7 +126,7 @@ export class Dwn {
*/
public static async create(config: DwnConfig): Promise<Dwn> {
config.didResolver ??= new UniversalResolver({
didResolvers : [DidDht, DidIon, DidKey],
didResolvers : [DidDht, DidJwk, DidKey ],
cache : new DidResolverCacheLevel({ location: 'RESOLVERCACHE' }),
});
config.tenantGate ??= new AllowAllTenantGate();
Expand Down

0 comments on commit 39c485c

Please sign in to comment.