Skip to content

Commit

Permalink
Update packages/dids/src/methods/did-dht.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Henry Tsai <[email protected]>
  • Loading branch information
nitro-neal and thehenrytsai authored May 2, 2024
1 parent a62c204 commit 07dea7e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/dids/src/methods/did-dht.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1181,6 +1181,7 @@ export class DidDhtDocument {

const publicKey = vm.publicKeyJwk!;

// Always set `kid` to `0` if `methodId` is `0`, even if `kid` is not given, as a caller/user convenience.
if(methodId === '0') {
publicKey.kid = '0';
}
Expand Down

0 comments on commit 07dea7e

Please sign in to comment.