Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const run = async (signals, proof) => {
const publicSignals = require(`${process.cwd()}/${generatedProofPath}/${signals}`);
const generatedProof = zkSnark.unstringifyBigInts((require(`${process.cwd()}/${generatedProofPath}/${proof}`)));
createGenerateCallFolder(generatedCallPath);
const generatedCall = await zkSnark.generateCall(publicSignals, generatedProof);
fs.writeFileSync(`${generatedCallPath}/generatedCall.json`, zkSnark.stringifyBigInts(generatedCall));
console.log('===== Generated Call Complete! =====');
console.log('===== Generated Call: =====')
console.log(generatedCall)
};