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 (vk) => {
console.log('===== Creating Smart Contract for OnChain verification =====');
const verifierKey = zkSnark.unstringifyBigInts(require(`${process.cwd()}/${trustedSetupPath}/${vk}`));
const template = zkSnark.generateVerifier(verifierKey);
fs.writeFileSync(`${contractsPath}/Verifier.sol`, template);
console.log('===== Smart Contract Created Successfully. Please check your contracts folder =====');
};