diff --git a/cli.js b/cli.js new file mode 100644 index 0000000..06c482d --- /dev/null +++ b/cli.js @@ -0,0 +1,352 @@ +#!/usr/bin/env node + +/* + Copyright 2018 0KIMS association. + + This file is part of jaz (Zero Knowledge Circuit Compiler). + + jaz is a free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + jaz is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public + License for more details. + + You should have received a copy of the GNU General Public License + along with jaz. If not, see . +*/ + +/* eslint-disable no-console */ + +const fs = require("fs"); +const path = require("path"); + +const zkSnark = require("./index.js"); +const {stringifyBigInts, unstringifyBigInts} = require("./src/stringifybigint.js"); + + +const version = require("./package").version; + +const argv = require("yargs") + .version(version) + .usage(`snarkjs + +setup command +============= + + snarkjs setup