mirror of
https://github.com/arnaucube/go-circom-prover-verifier.git
synced 2026-02-08 11:56:39 +01:00
Fix mutation of inputs in Verify
This commit is contained in:
@@ -27,6 +27,10 @@ func TestVerify1(t *testing.T) {
|
||||
|
||||
v := Verify(vk, proof, public)
|
||||
assert.True(t, v)
|
||||
|
||||
// Verify again to check that `Verify` hasn't mutated the inputs
|
||||
v = Verify(vk, proof, public)
|
||||
assert.True(t, v)
|
||||
}
|
||||
|
||||
func BenchmarkVerify(b *testing.B) {
|
||||
|
||||
Reference in New Issue
Block a user