From 0f0ceff721467ef698462966b2d9a4f34b40bece Mon Sep 17 00:00:00 2001 From: eum602 Date: Sun, 15 Oct 2023 11:37:25 -0500 Subject: [PATCH] fix: encodingMethod when revoking a jwk key from didDocument 'hex' -> 'json' Signed-off-by: eum602 --- package.json | 2 +- src/services/did-lac/did.service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e3b77b4..437560c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lacchain-identity", - "version": "0.0.6", + "version": "0.0.7", "description": "Rest api for lacchain identity manager", "main": "dist/src/index.js", "types": "dist/src/index.d.ts", diff --git a/src/services/did-lac/did.service.ts b/src/services/did-lac/did.service.ts index 05e09c8..7e1ac44 100644 --- a/src/services/did-lac/did.service.ts +++ b/src/services/did-lac/did.service.ts @@ -428,7 +428,7 @@ export abstract class DidService implements DidLacService { did: jwkAttribute.did, relation: jwkAttribute.relation, algorithm: 'jwk', - encodingMethod: 'hex', + encodingMethod: 'json', value: toUtf8Bytes(canonicalize(jwkAttribute.jwk)), revokeDeltaTime: jwkAttribute.revokeDeltaTime, compromised: jwkAttribute.compromised