From 062b06a08fbf8be8e294781af9c71f3df49ac58e Mon Sep 17 00:00:00 2001 From: J <1410101208@qq.com> Date: Tue, 19 Sep 2023 15:15:51 +0800 Subject: [PATCH] Fix: fix parse bug in vc --- protocol/vc/src/parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/vc/src/parser.ts b/protocol/vc/src/parser.ts index 816f8e0..af8b62d 100644 --- a/protocol/vc/src/parser.ts +++ b/protocol/vc/src/parser.ts @@ -63,7 +63,7 @@ export function toMidenInput(data: VerifiableCredential, leaves: number[] finaResult = finaResult.concat(',', nonce.toString()); // and the corresponding authpath - const authPath = merkleTree.getProof(data.credentialSubjectHashes[k]); + const authPath = merkleTree.getProof(data.credentialSubjectHashes[k], k); if (!authPath) throw new Error(`Can not find proof: ${nonces[k]}`);