Closed mikirov closed 1 month ago
Hi @mikirov, thank you for submitting the Issue.
Could you confirm if this is still a problem with the latest versions of Noir?
If yes, it would help a ton with further debugging if you could share a minimal example for reproduction. Thanks!
Aim
Generation of intermediate proof artifacts using the NoirJS SDK for later use for recursive proof verification.
Expected Behavior
Proper generation of verification key as an array of field elements, proof as an array of field elements, verification key hash.
Bug
The intermediate artifact generation code gives the following error:
To Reproduce
import path from 'path'; import { ProofData, CompiledCircuit } from '@noir-lang/types';
import dkim_circuit from "../circuits/target/dkim.json"
import * as fs from 'fs';
const getArtifactsPath = (name: string) => { return path.join("circuits", "contract", name, "plonk_vk.sol:UltraVerifier") }
const loadProofData = (name: string): ProofData => { // Read the file as a Buffer to get the hex data const hexData = fs.readFileSync(path.join("circuits", "proofs",
${name}.proof
));}
describe("Recursive flow", async () => { let backends; let noirs;
})