Skip to content

Commit bd09223

Browse files
committed
avoid a copy
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
1 parent e76b90c commit bd09223

File tree

1 file changed

+1
-1
lines changed
  • token/core/zkatdlog/nogh/v1/crypto/rp

1 file changed

+1
-1
lines changed

token/core/zkatdlog/nogh/v1/crypto/rp/ipa.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ func (v *ipaVerifier) Verify(proof *IPA) error {
327327
CPrime := proof.L[i].Mul(xSquare)
328328
CPrime.Add(proof.R[i].Mul(xSquareInv))
329329
CPrime.Add(C)
330-
C = CPrime
330+
C = CPrime.Copy()
331331
// reduce the generators by 1/2, as a function of the old generators and x and 1/x
332332
leftGen, rightGen = reduceGenerators(leftGen, rightGen, x, xInv)
333333
}

0 commit comments

Comments
 (0)