temporary workaround for the G2 MSM bug (this one seems to work correctly, but it is much slower)

This commit is contained in:
Balazs Komuves 2024-02-29 13:30:17 +01:00
parent 69594a90a8
commit 1ef1b040d6
No known key found for this signature in database
GPG Key ID: F63B7AEF18435562

View File

@ -61,8 +61,9 @@ func msmConstantineG2*( coeffs: openArray[Fr] , points: openArray[G2] ): G2 =
var r : ProjG2
# [Fp,aff.G1]
msm.multiScalarMul_vartime( r,
# note: at the moment of writing this, `multiScalarMul_vartime` is buggy.
# however, the "reference" one is _much_ slower.
msm.multiScalarMul_reference_vartime( r,
toOpenArray(bigcfs, 0, N-1),
toOpenArray(points, 0, N-1) )