mirror of
https://github.com/logos-storage/nim-groth16.git
synced 2026-01-07 08:03:07 +00:00
temporary workaround for the G2 MSM bug (this one seems to work correctly, but it is much slower)
This commit is contained in:
parent
69594a90a8
commit
1ef1b040d6
@ -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) )
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user