Skip to content

Commit

Permalink
resolve did:dht in VCs (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
phoebe-lew authored Nov 29, 2023
1 parent 34b915d commit 7828b69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/credentials/src/verifiable-credential.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { v4 as uuidv4 } from 'uuid';
import { getCurrentXmlSchema112Timestamp } from './utils.js';
import { Convert } from '@web5/common';
import { verifyJWT } from 'did-jwt';
import { DidIonMethod, DidKeyMethod, DidResolver } from '@web5/dids';
import { DidDhtMethod, DidIonMethod, DidKeyMethod, DidResolver } from '@web5/dids';
import { SsiValidator } from './validators.js';

export const DEFAULT_CONTEXT = 'https://www.w3.org/2018/credentials/v1';
Expand Down Expand Up @@ -62,7 +62,7 @@ type DecodedVcJwt = {
signature: string
}

const didResolver = new DidResolver({ didResolvers: [DidIonMethod, DidKeyMethod] });
const didResolver = new DidResolver({ didResolvers: [DidIonMethod, DidKeyMethod, DidDhtMethod] });

class TbdResolver implements Resolvable {
async resolve(didUrl: string): Promise<DIDResolutionResult> {
Expand Down
1 change: 0 additions & 1 deletion packages/credentials/tests/verifiable-credential.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ describe('Verifiable Credential Tests', () => {
) {}
}


beforeEach(async () => {
const alice = await DidKeyMethod.create();
const [signingKeyPair] = alice.keySet.verificationMethodKeys!;
Expand Down

0 comments on commit 7828b69

Please sign in to comment.