mirror of
https://github.com/arnaucube/go-circom-prover-verifier.git
synced 2026-02-08 11:56:39 +01:00
Add testdata big&small circuits, update proof parsers, add compile-circuits.sh
This commit is contained in:
10
README.md
10
README.md
@@ -21,6 +21,12 @@ w, _ := circomprover.ParseWitness(witnessJson)
|
||||
// generate the proof
|
||||
proof, pubSignals, err := circomprover.GenerateProof(pk, w)
|
||||
assert.Nil(t, err)
|
||||
fmt.Println(pubSignals)
|
||||
fmt.Println(proof)
|
||||
|
||||
proofStr, err := circomprover.ProofToString(proof)
|
||||
assert.Nil(t, err)
|
||||
publicStr, err := json.Marshal(circomprover.ArrayBigIntToString(pubSignals)
|
||||
assert.Nil(t, err)
|
||||
|
||||
fmt.Println(proofStr)
|
||||
fmt.Println(publicStr)
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user