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