From 07dea7eff4e92ca8bfb0146c9c023078cdd6489c Mon Sep 17 00:00:00 2001 From: nitro-neal <5314059+nitro-neal@users.noreply.github.com> Date: Thu, 2 May 2024 15:52:20 -0700 Subject: [PATCH] Update packages/dids/src/methods/did-dht.ts Co-authored-by: Henry Tsai --- packages/dids/src/methods/did-dht.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/dids/src/methods/did-dht.ts b/packages/dids/src/methods/did-dht.ts index 203105566..8262aea7c 100644 --- a/packages/dids/src/methods/did-dht.ts +++ b/packages/dids/src/methods/did-dht.ts @@ -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'; }