From b7326d2c3dfb17cfa79a5c783f022089dcc509e1 Mon Sep 17 00:00:00 2001 From: sirasistant Date: Fri, 27 Sep 2024 12:41:28 +0000 Subject: [PATCH] fix bad merge --- .../tooling/noir_js_backend_barretenberg/src/backend.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/noir/noir-repo/tooling/noir_js_backend_barretenberg/src/backend.ts b/noir/noir-repo/tooling/noir_js_backend_barretenberg/src/backend.ts index 1613944ecc1..812a7173ad2 100644 --- a/noir/noir-repo/tooling/noir_js_backend_barretenberg/src/backend.ts +++ b/noir/noir-repo/tooling/noir_js_backend_barretenberg/src/backend.ts @@ -118,7 +118,8 @@ export class UltraHonkBackend implements Backend, VerifierBackend { proofData: ProofData, numOfPublicInputs: number, ): Promise<{ proofAsFields: string[]; vkAsFields: string[]; vkHash: string }> { - const proof = reconstructProofWithPublicInputsHonk(proofData); + const flattenedPublicInputs = flattenFieldsAsArray(proofData.publicInputs); + const proof = reconstructHonkProof(flattenedPublicInputs, proofData.proof); return this.backend.generateRecursiveProofArtifacts(proof, numOfPublicInputs); }