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]}`);