This repository has been archived by the owner on Oct 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
157 lines (153 loc) · 4.33 KB
/
hardhat.config.ts
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
import { HardhatUserConfig } from 'hardhat/config';
import '@nomicfoundation/hardhat-toolbox';
import "@nomicfoundation/hardhat-chai-matchers";
import '@nomiclabs/hardhat-ethers';
import '@typechain/hardhat';
import 'hardhat-circom';
import './tasks/createZKKYC';
import './tasks/smartCircuitBuild';
import './tasks/revokeZKKYC';
import './tasks/reissueZKKYC';
const config: HardhatUserConfig = {
mocha: {
timeout: 100000000,
},
solidity: {
compilers: [
{
version: '0.6.11', // for Verifier created by hardhat-circom
},
{
version: '0.8.17',
},
],
},
networks: {
galaTestnet: {
url: "https://evm-rpc-http-devnet-41233.galactica.com/", // requires gala dev wireguard connection
accounts: [
process.env.GalaTestnetDeployerPrivateKey!, // deployer
process.env.GalaTestnetInstitution1PrivateKey!, // test institution for fraud investigation
process.env.GalaTestnetInstitution2PrivateKey!, // test institution for fraud investigation
process.env.GalaTestnetInstitution3PrivateKey!, // test institution for fraud investigation
],
}
},
etherscan: {
apiKey: {
galaTestnet: "something"!, // not needed for now, I guess
},
customChains: [
{
network: "galaTestnet",
chainId: 41233,
urls: {
apiURL: "https://explorer-devnet-41233.galactica.com/api",
browserURL: "https://explorer-devnet-41233.galactica.com/"
}
}
]
},
circom: {
// Base path for input files
inputBasePath: './circuits',
// Base path for files being output, defaults to `./circuits/`
outputBasePath: './circuits/build',
// The final ptau file, relative to inputBasePath, from a Phase 1 ceremony
ptau: 'pot17_final.ptau',
// Each object in this array refers to a separate circuit
circuits: [
{
name: 'zkKYC',
circuit: 'test/test_zkKYC.circom',
input: 'input/zkKYC.json',
},
{
name: 'merkleProof',
circuit: 'test/test_merkleProof.circom',
input: 'input/merkleProof.json',
},
{
name: 'merkleProof2',
circuit: 'test/test_merkleProof_2.circom',
input: 'input/merkleProof_2.json',
},
{
name: 'calculateZkCertHash',
circuit: 'test/test_calculateZkCertHash.circom',
input: 'input/calculateZkCertHash.json',
},
{
name: 'humanID',
circuit: 'test/test_humanID.circom',
input: 'input/humanID.json',
},
{
name: 'ownership',
circuit: 'test/test_ownership.circom',
input: 'input/ownership.json',
},
{
name: 'ageProof',
circuit: 'test/test_ageProof.circom',
input: 'input/ageProof.json',
},
{
name: 'ageProofZkKYC',
circuit: 'test/test_ageProofZkKYC.circom',
input: 'input/ageProofZkKYC.json',
},
{
name: 'authorization',
circuit: 'test/test_authorization.circom',
input: 'input/authorization.json',
},
{
name: 'mimcEncrypt',
circuit: 'test/test_mimcEncrypt.circom',
input: 'input/mimcEncrypt.json',
},
{
name: 'mimcEnDecrypt',
circuit: 'test/test_mimcEnDecrypt.circom',
input: 'input/mimcEnDecrypt.json',
},
{
name: 'privToPubKey',
circuit: 'test/test_privToPubKey.circom',
input: 'input/privToPubKey.json',
},
{
name: 'ecdh',
circuit: 'test/test_ecdh.circom',
input: 'input/ecdh.json',
},
{
name: 'encryptionProof',
circuit: 'test/test_encryptionProof.circom',
input: 'input/encryptionProof.json',
},
{
name: 'polynomial',
circuit: 'test/test_polynomial.circom',
input: 'input/polynomial.json',
},
{
name: 'shamirsSecretSharing',
circuit: 'test/test_shamirsSecretSharing.circom',
input: 'input/shamirsSecretSharing.json',
},
{
name: 'investigatableZkKYC',
circuit: 'test/test_investigatableZkKYC.circom',
input: 'input/investigatableZkKYC.json',
},
{
name: 'exampleMockDApp',
circuit: 'test/test_exampleMockDApp.circom',
input: 'input/exampleMockDApp.json',
},
],
},
};
export default config;