Created
November 4, 2021 04:44
-
-
Save TheFrozenFire/abe70b77a8c67847f91e59ec57727c1d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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