From 9c4fb7ba6b11a45a12c8b6c9e7d9a27a9968a618 Mon Sep 17 00:00:00 2001 From: Kendall Weihe Date: Wed, 20 Mar 2024 15:48:04 -0700 Subject: [PATCH] Move from JsonWebKey2020 to JsonWebKey for DID VMs --- dids/didjwk/didjwk.go | 2 +- dids/didweb/didweb.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dids/didjwk/didjwk.go b/dids/didjwk/didjwk.go index 8b56046..38fa1f1 100644 --- a/dids/didjwk/didjwk.go +++ b/dids/didjwk/didjwk.go @@ -127,7 +127,7 @@ func createDocument(did did.DID, publicKey jwk.JWK) didcore.Document { vm := didcore.VerificationMethod{ ID: did.URI + "#0", - Type: "JsonWebKey2020", + Type: "JsonWebKey", Controller: did.URI, PublicKeyJwk: &publicKey, } diff --git a/dids/didweb/didweb.go b/dids/didweb/didweb.go index 8aa7a60..6d0331e 100644 --- a/dids/didweb/didweb.go +++ b/dids/didweb/didweb.go @@ -167,7 +167,7 @@ func Create(domain string, opts ...CreateOption) (_did.BearerDID, error) { vm := didcore.VerificationMethod{ ID: "#" + strconv.Itoa(idx), - Type: "JsonWebKey2020", + Type: "JsonWebKey", Controller: did.URI, PublicKeyJwk: &publicKeyJWK, }