-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
44 lines (39 loc) · 1.21 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
const yargs = require("yargs");
const kzg_basic_prover = require("./src/kzg_basic_prover.js");
const kzg_basic_verifier = require("./src/kzg_basic_verifier.js");
const Logger = require("logplease");
const logger = Logger.create("", { showTimestamp: false });
Logger.setLogLevel("INFO");
// yargs
// .scriptName("kzg")
// .version("0.0.1")
// .usage("$0 <cmd>")
// .command(
// "prove [evaluations]",
// "generates snark proofs!",
// (yargs) => {},
// function (argv) {
// return _kzg_basic_prover(argv.evaluations);
// }
// )
// .command(
// "verify [proof]",
// "verifies snark proofs",
// (yargs) => {
// yargs.positional("proof", {
// type: "object",
// default: "{}",
// describe: "snark proof",
// });
// },
// function (argv) {
// return _kzg_basic_verifier(argv.proof);
// }
// )
// .help().argv;
// async function _kzg_basic_prover() {
// return await kzg_basic_prover(evaluations, { logger });
// }
// async function _kzg_basic_verifier(proof) {
// return await kzg_basic_verifier(proof, { logger });
// }