UNPKG

@nori-zk/proof-conversion

Version:

Verifying zkVM proofs inside o1js circuits, to generate Mina compatible proof

26 lines 801 B
#!/usr/bin/env node // Use child_process to run the main script with flags import { spawn } from 'child_process'; import { resolve } from 'path'; import rootDir from '../utils/root_dir.js'; const cliPath = resolve(rootDir, 'build', 'src', 'bin', 'cli.js'); // Run the actual script with the required Node.js flags const child = spawn('node', [ '--experimental-vm-modules', '--experimental-wasm-modules', '--wasm-max-table-size=2000', cliPath, ...process.argv.slice(2), ], { stdio: 'inherit', cwd: process.cwd(), }); // Exit with the same code as the child process child.on('exit', (code) => { process.exit(code); }); // Interrupt SIGINT and allow the child to exit first process.on('SIGINT', () => { child.kill('SIGINT'); }); //# sourceMappingURL=cli-wrapper.js.map