We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 178e4f4 commit 7e7ba4eCopy full SHA for 7e7ba4e
token/core/zkatdlog/nogh/v1/crypto/rp/ipa.go
@@ -298,10 +298,11 @@ func (v *ipaVerifier) Verify(proof *IPA) error {
298
299
X := v.Q.Mul(x)
300
301
- var leftGen []*mathlib.G1
302
- var rightGen []*mathlib.G1
303
- leftGen = v.LeftGenerators
304
- rightGen = v.RightGenerators
+ leftGen := make([]*mathlib.G1, len(v.LeftGenerators))
+ copy(leftGen, v.LeftGenerators)
+ rightGen := make([]*mathlib.G1, len(v.RightGenerators))
+ copy(rightGen, v.RightGenerators)
305
+
306
for i := range v.NumberOfRounds {
307
// check well-formedness
308
if proof.L[i] == nil || proof.R[i] == nil {
0 commit comments