-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshield.config.js
73 lines (73 loc) · 2.47 KB
/
shield.config.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
module.exports = {
// (optional) solidity version for compiled contracts, defaults to `^0.8.0`
solidity: "^0.8.0",
circom: {
// (optional) Base path for files being read, defaults to `/circuits`
inputBasePath: "/circuits",
// (optional) Base path for files being output, defaults to `/build`
outputBasePath: "/build",
// (required) The final ptau file, relative to inputBasePath, from a Phase 1 ceremony
ptau: "powersOfTau28_hez_final_18.ptau",
// (required) Each object in this array refers to a separate circuit
circuits: [
/*
{
// (required) The name of the circuit
name: "MerkleTree",
// (required) Protocol used to build circuits ("groth16" or "plonk"), defaults to "groth16"
protocol: "plonk",
// (required) Input path for circuit file, inferred from `name` if unspecified
circuit: "MerkleTree.circom",
// (required) Output path for zkey file, inferred from `name` if unspecified
zkey: "MerkleTree.zkey",
// (optional) Input path for input signal data, inferred from `name` if unspecified
input: "input.json",
// // (optional) Output path for witness file, inferred from `name` if unspecified
witness: "MerkleTree/MerkleTree.json",
},
*/
{
name: "VerifyProof1",
protocol: "plonk",
circuit: "test/VerifyProof1.circom",
zkey: "VerifyProof1.zkey",
witness: "VerifyProof1/VerifyProof1.json",
},
{
name: "VerifyProof8",
protocol: "plonk",
circuit: "test/VerifyProof8.circom",
zkey: "VerifyProof8.zkey",
witness: "VerifyProof8/VerifyProof8.json",
},
{
name: "Deposit",
protocol: "plonk",
circuit: "Deposit.circom",
zkey: "Deposit.zkey",
witness: "Deposit/Deposit.json",
},
{
name: "Transaction1x1",
protocol: "plonk",
circuit: "Transaction1x1.circom",
zkey: "Transaction1x1.zkey",
witness: "Transaction1x1/Transaction1x1.json",
},
{
name: "Transaction1x2",
protocol: "plonk",
circuit: "Transaction1x2.circom",
zkey: "Transaction1x2.zkey",
witness: "Transaction1x2/Transaction1x2.json",
},
{
name: "Transaction2x2",
protocol: "plonk",
circuit: "Transaction2x2.circom",
zkey: "Transaction2x2.zkey",
witness: "Transaction2x2/Transaction2x2.json",
},
],
},
};