Skip to content

Instantly share code, notes, and snippets.

@TheFrozenFire
Created November 4, 2021 04:44
Show Gist options
  • Save TheFrozenFire/abe70b77a8c67847f91e59ec57727c1d to your computer and use it in GitHub Desktop.
Save TheFrozenFire/abe70b77a8c67847f91e59ec57727c1d to your computer and use it in GitHub Desktop.
const temp = require("temp"); // https://github.com/bruce/node-temp
const fs = require("fs");
const circom_wasm = require("circom_tester").wasm;
async function test() {
temp.track();
const temp_circuit = await temp.open('test');
fs.writeSync(temp_circuit.fd, `
pragma circom 2.0.0;
template foo() { }
component main = foo();
`);
await circom_wasm(temp_circuit.path);
}
test()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment