-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.go
53 lines (46 loc) · 1.4 KB
/
main.go
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
package main
import "gnark-benchmark/p256"
func main() {
// p256.Groth16Setup("build/p256/")
p256.Groth16Prove("build/p256/")
// sha3.Groth16Setup("build/sha3/")
// sha3.Groth16Prove("build/sha3/")
// sha2.Groth16Setup("build/sha2/")
// sha2.Groth16Prove("build/sha2/")
// mimc.Groth16Setup("build/mimc/")
// mimc.Groth16Prove("build/mimc/")
// keccak.Groth16Setup("build/keccak/")
// keccak.Groth16Prove("build/keccak/")
// attributes, err := json.Marshal(eddsa.Attributes{Attributes: []int{1, 2, 3}})
// if err != nil {
// panic(err)
// }
// credential, err := json.Marshal(ecdsa.KycCredential{
// Credential: 12,
// Age: 18,
// Gender: 1,
// Nation: 0b10,
// ExpireTime: 123,
// })
// if err != nil {
// panic(err)
// }
// if len(os.Args) > 1 && os.Args[1] == "plonk" {
// println("------Plonk ECDSA Secp256k1------")
// ecdsa.PlonkSetup("")
// ecdsa.PlonkProve("", credential)
// println("------Plonk EdDSA BN254------")
// eddsa.PlonkSetup("")
// eddsa.PlonkProve("", attributes)
// } else {
// println("------Groth16 Dummy Circuit 1200k------")
// dummy1200k.Groth16Setup("")
// dummy1200k.Groth16Prove("")
// println("------Groth16 ECDSA Secp256k1------")
// ecdsa.Groth16Setup("")
// ecdsa.Groth16Prove("", credential)
// println("------Groth16 EdDSA BN254------")
// eddsa.Groth16Setup("")
// eddsa.Groth16Prove("", attributes)
// }
}