Skip to content

Commit 5428578

Browse files
committed
lint fix
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
1 parent e4ed9cb commit 5428578

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

token/core/zkatdlog/nogh/v1/crypto/common/array_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import (
1717
)
1818

1919
func randomG1(t *testing.T, c *math.Curve) *math.G1 {
20+
t.Helper()
2021
randReader, err := c.Rand()
2122
require.NoError(t, err)
2223

@@ -92,4 +93,3 @@ func TestHashG1Array(t *testing.T) {
9293
exp := h2.Sum(nil)
9394
require.Equal(t, exp, hRes)
9495
}
95-

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -366,11 +366,6 @@ func reduceGenerators(leftGen, rightGen []*mathlib.G1, x, xInv *mathlib.Zr) ([]*
366366

367367
func InnerProduct(left []*mathlib.Zr, right []*mathlib.Zr, c *mathlib.Curve) *mathlib.Zr {
368368
return c.ModAddMul(left, right, c.GroupOrder)
369-
// ip := c.NewZrFromInt(0)
370-
// for i, l := range left {
371-
// ip = c.ModAdd(ip, c.ModMul(l, right[i], c.GroupOrder), c.GroupOrder)
372-
// }
373-
// return ip
374369
}
375370

376371
func commitVector(left []*mathlib.Zr, right []*mathlib.Zr, leftgen []*mathlib.G1, rightgen []*mathlib.G1, c *mathlib.Curve) *mathlib.G1 {

0 commit comments

Comments
 (0)