Fix mutation of inputs in Verify

This commit is contained in:
Eduard S
2020-04-23 16:02:00 +02:00
parent bbcbba3113
commit 40b280fc96
2 changed files with 5 additions and 1 deletions

View File

@@ -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) {