From 1fd298fb31f8b2a3ae56568bea45d87ec0790f20 Mon Sep 17 00:00:00 2001 From: Karim Stekelenburg Date: Thu, 21 Jul 2022 14:23:00 +0200 Subject: [PATCH] fix(vc): change pubKey input from Buffer to Uint8Array (#935) Signed-off-by: Karim --- .../modules/vc/signature-suites/bbs/BbsBlsSignatureProof2020.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/modules/vc/signature-suites/bbs/BbsBlsSignatureProof2020.ts b/packages/core/src/modules/vc/signature-suites/bbs/BbsBlsSignatureProof2020.ts index 2eec683b1f..3dbd76f466 100644 --- a/packages/core/src/modules/vc/signature-suites/bbs/BbsBlsSignatureProof2020.ts +++ b/packages/core/src/modules/vc/signature-suites/bbs/BbsBlsSignatureProof2020.ts @@ -194,7 +194,7 @@ export class BbsBlsSignatureProof2020 extends suites.LinkedDataProof { // Compute the proof const outputProof = await blsCreateProof({ signature, - publicKey: key.publicKeyBuffer, + publicKey: Uint8Array.from(key.publicKeyBuffer), messages: allInputStatements, nonce, revealed: revealIndicies,