Skip to content

Commit ec40c04

Browse files
authored
fix gfp12 MulScalar
Previously MulScalar was ignoring the first parameter, which was inconsistent with gfp6 and gfp2.
1 parent 505ab14 commit ec40c04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bn256/gfp12.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ func (e *gfP12) Mul(a, b *gfP12, pool *bnPool) *gfP12 {
125125
}
126126

127127
func (e *gfP12) MulScalar(a *gfP12, b *gfP6, pool *bnPool) *gfP12 {
128-
e.x.Mul(e.x, b, pool)
129-
e.y.Mul(e.y, b, pool)
128+
e.x.Mul(a.x, b, pool)
129+
e.y.Mul(a.y, b, pool)
130130
return e
131131
}
132132

0 commit comments

Comments
 (0)