@nori-zk/proof-conversion
Version:
Verifying zkVM proofs inside o1js circuits, to generate Mina compatible proof
22 lines • 688 B
JavaScript
// 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);
});
//# sourceMappingURL=cli-wrapper.js.map