From e6ec1d075cb990aaf0d22e64b9598c666c4f5920 Mon Sep 17 00:00:00 2001 From: Moe Jangda Date: Thu, 18 May 2023 15:27:51 -0400 Subject: [PATCH] change default id for encryption key --- packages/dids/src/did-ion.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/dids/src/did-ion.ts b/packages/dids/src/did-ion.ts index 46c1bc722..65587126f 100644 --- a/packages/dids/src/did-ion.ts +++ b/packages/dids/src/did-ion.ts @@ -166,7 +166,7 @@ export class DidIonApi implements DidMethodResolver, DidMethodCreator { keyPair : await generateKeyPair('secp256k1'), purposes : ['authentication'], }, { - id : 'encr', + id : 'enc', type : 'JsonWebKey2020', keyPair : await generateKeyPair('secp256k1'), purposes : ['keyAgreement'], @@ -178,7 +178,7 @@ export class DidIonApi implements DidMethodResolver, DidMethodCreator { 'serviceEndpoint' : { 'nodes' : dwnUrls, 'messageAuthorizationKeys' : ['#authz'], - 'recordEncryptionKeys' : ['#encr'] + 'recordEncryptionKeys' : ['#enc'] } }];