mirror of
https://github.com/arnaucube/circom_tester.git
synced 2026-02-07 11:26:41 +01:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
15ddd2a0be | ||
|
|
020cb4d510 |
@@ -46,6 +46,8 @@ async function compile (baseName, fileName, options) {
|
|||||||
if (options.r1cs) flags += "--r1cs ";
|
if (options.r1cs) flags += "--r1cs ";
|
||||||
if (options.json) flags += "--json ";
|
if (options.json) flags += "--json ";
|
||||||
if (options.output) flags += "--output " + options.output + " ";
|
if (options.output) flags += "--output " + options.output + " ";
|
||||||
|
if (options.O === 0) flags += "--O0 "
|
||||||
|
if (options.O === 1) flags += "--O1 "
|
||||||
|
|
||||||
b = await exec("circom " + flags + fileName);
|
b = await exec("circom " + flags + fileName);
|
||||||
assert(b.stderr == "",
|
assert(b.stderr == "",
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "circom_tester",
|
"name": "circom_tester",
|
||||||
"version": "0.0.6",
|
"version": "0.0.7",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "circom_tester",
|
"name": "circom_tester",
|
||||||
"version": "0.0.6",
|
"version": "0.0.7",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"chai": "^4.3.4",
|
"chai": "^4.3.4",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "circom_tester",
|
"name": "circom_tester",
|
||||||
"version": "0.0.6",
|
"version": "0.0.7",
|
||||||
"description": "Tools for testing circom circuits.",
|
"description": "Tools for testing circom circuits.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -51,6 +51,8 @@ async function compile (fileName, options) {
|
|||||||
if (options.r1cs) flags += "--r1cs ";
|
if (options.r1cs) flags += "--r1cs ";
|
||||||
if (options.json) flags += "--json ";
|
if (options.json) flags += "--json ";
|
||||||
if (options.output) flags += "--output " + options.output + " ";
|
if (options.output) flags += "--output " + options.output + " ";
|
||||||
|
if (options.O === 0) flags += "--O0 "
|
||||||
|
if (options.O === 1) flags += "--O1 "
|
||||||
|
|
||||||
b = await exec("circom " + flags + fileName);
|
b = await exec("circom " + flags + fileName);
|
||||||
assert(b.stderr == "",
|
assert(b.stderr == "",
|
||||||
|
|||||||
Reference in New Issue
Block a user