forked from 0xPolygonID/witnesscalc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun_tests.sh
executable file
·136 lines (124 loc) · 5.43 KB
/
run_tests.sh
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
#!/usr/bin/env bash
set -e
set -x
mkdir -p temp
package/bin/authV2 \
testdata/authV2_input.json \
temp/authV2_witness.wtns
snarkjs groth16 prove \
circuits/authV2/circuit_final.zkey \
temp/authV2_witness.wtns \
temp/authV2_proof.json \
temp/authV2_public.json
snarkjs groth16 verify \
circuits/authV2/verification_key.json \
temp/authV2_public.json \
temp/authV2_proof.json
package/bin/credentialAtomicQuerySigV2 \
testdata/credentialAtomicQuerySigV2_input.json \
temp/credentialAtomicQuerySigV2_witness.wtns
snarkjs groth16 prove \
circuits/credentialAtomicQuerySigV2/circuit_final.zkey \
temp/credentialAtomicQuerySigV2_witness.wtns \
temp/credentialAtomicQuerySigV2_proof.json \
temp/credentialAtomicQuerySigV2_public.json
snarkjs groth16 verify \
circuits/credentialAtomicQuerySigV2/verification_key.json \
temp/credentialAtomicQuerySigV2_public.json \
temp/credentialAtomicQuerySigV2_proof.json
package/bin/credentialAtomicQuerySigV2OnChain \
testdata/credentialAtomicQuerySigV2OnChain_input.json \
temp/credentialAtomicQuerySigV2OnChain_witness.wtns
snarkjs groth16 prove \
circuits/credentialAtomicQuerySigV2OnChain/circuit_final.zkey \
temp/credentialAtomicQuerySigV2OnChain_witness.wtns \
temp/credentialAtomicQuerySigV2OnChain_proof.json \
temp/credentialAtomicQuerySigV2OnChain_public.json
snarkjs groth16 verify \
circuits/credentialAtomicQuerySigV2OnChain/verification_key.json \
temp/credentialAtomicQuerySigV2OnChain_public.json \
temp/credentialAtomicQuerySigV2OnChain_proof.json
package/bin/credentialAtomicQueryMTPV2 \
testdata/credentialAtomicQueryMTPV2_input.json \
temp/credentialAtomicQueryMTPV2_witness.wtns
snarkjs groth16 prove \
circuits/credentialAtomicQueryMTPV2/circuit_final.zkey \
temp/credentialAtomicQueryMTPV2_witness.wtns \
temp/credentialAtomicQueryMTPV2_proof.json \
temp/credentialAtomicQueryMTPV2_public.json
snarkjs groth16 verify \
circuits/credentialAtomicQueryMTPV2/verification_key.json \
temp/credentialAtomicQueryMTPV2_public.json \
temp/credentialAtomicQueryMTPV2_proof.json
package/bin/credentialAtomicQueryMTPV2OnChain \
testdata/credentialAtomicQueryMTPV2OnChain_input.json \
temp/credentialAtomicQueryMTPV2OnChain_witness.wtns
snarkjs groth16 prove \
circuits/credentialAtomicQueryMTPV2OnChain/circuit_final.zkey \
temp/credentialAtomicQueryMTPV2OnChain_witness.wtns \
temp/credentialAtomicQueryMTPV2OnChain_proof.json \
temp/credentialAtomicQueryMTPV2OnChain_public.json
snarkjs groth16 verify \
circuits/credentialAtomicQueryMTPV2OnChain/verification_key.json \
temp/credentialAtomicQueryMTPV2OnChain_public.json \
temp/credentialAtomicQueryMTPV2OnChain_proof.json
package/bin/credentialAtomicQueryV3 \
testdata/credentialAtomicQueryV3_Sig_input.json \
temp/credentialAtomicQueryV3_Sig_witness.wtns
snarkjs groth16 prove \
circuits/credentialAtomicQueryV3-beta.1/circuit_final.zkey \
temp/credentialAtomicQueryV3_Sig_witness.wtns \
temp/credentialAtomicQueryV3_Sig_proof.json \
temp/credentialAtomicQueryV3_Sig_public.json
snarkjs groth16 verify \
circuits/credentialAtomicQueryV3-beta.1/verification_key.json \
temp/credentialAtomicQueryV3_Sig_public.json \
temp/credentialAtomicQueryV3_Sig_proof.json
package/bin/credentialAtomicQueryV3 \
testdata/credentialAtomicQueryV3_MTP_input.json \
temp/credentialAtomicQueryV3_MTP_witness.wtns
snarkjs groth16 prove \
circuits/credentialAtomicQueryV3-beta.1/circuit_final.zkey \
temp/credentialAtomicQueryV3_MTP_witness.wtns \
temp/credentialAtomicQueryV3_MTP_proof.json \
temp/credentialAtomicQueryV3_MTP_public.json
snarkjs groth16 verify \
circuits/credentialAtomicQueryV3-beta.1/verification_key.json \
temp/credentialAtomicQueryV3_MTP_public.json \
temp/credentialAtomicQueryV3_MTP_proof.json
package/bin/credentialAtomicQueryV3OnChain \
testdata/credentialAtomicQueryV3OnChain_Sig_input.json \
temp/credentialAtomicQueryV3OnChain_Sig_witness.wtns
snarkjs groth16 prove \
circuits/credentialAtomicQueryV3OnChain-beta.1/circuit_final.zkey \
temp/credentialAtomicQueryV3OnChain_Sig_witness.wtns \
temp/credentialAtomicQueryV3OnChain_Sig_proof.json \
temp/credentialAtomicQueryV3OnChain_Sig_public.json
snarkjs groth16 verify \
circuits/credentialAtomicQueryV3OnChain-beta.1/verification_key.json \
temp/credentialAtomicQueryV3OnChain_Sig_public.json \
temp/credentialAtomicQueryV3OnChain_Sig_proof.json
package/bin/credentialAtomicQueryV3OnChain \
testdata/credentialAtomicQueryV3OnChain_MTP_input.json \
temp/credentialAtomicQueryV3OnChain_MTP_witness.wtns
snarkjs groth16 prove \
circuits/credentialAtomicQueryV3OnChain-beta.1/circuit_final.zkey \
temp/credentialAtomicQueryV3OnChain_MTP_witness.wtns \
temp/credentialAtomicQueryV3OnChain_MTP_proof.json \
temp/credentialAtomicQueryV3OnChain_MTP_public.json
snarkjs groth16 verify \
circuits/credentialAtomicQueryV3OnChain-beta.1/verification_key.json \
temp/credentialAtomicQueryV3OnChain_MTP_public.json \
temp/credentialAtomicQueryV3OnChain_MTP_proof.json
package/bin/linkedMultiQuery10 \
testdata/linkedMultiQuery10_input.json \
temp/linkedMultiQuery10_witness.wtns
snarkjs groth16 prove \
circuits/linkedMultiQuery10-beta.1/circuit_final.zkey \
temp/linkedMultiQuery10_witness.wtns \
temp/linkedMultiQuery10_proof.json \
temp/linkedMultiQuery10_public.json
snarkjs groth16 verify \
circuits/linkedMultiQuery10-beta.1/verification_key.json \
temp/linkedMultiQuery10_public.json \
temp/linkedMultiQuery10_proof.json