You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// On the other hand (xj²τ² + yjτ + z)(xjτ² + yj²τ + z)
// = τ²(y²-ξxz) + τ(ξx²-yz) + (z²-ξxy)
//
// So that's why A = (z²-ξxy), B = (ξx²-yz), C = (y²-ξxz)
while the right one is :
// On the other hand (xj²τ² + yjτ + z)(xjτ² + yj²τ + z)
// = τ²(y²-xz) + τ(ξx²-yz) + (z²-ξxy)
//
// So that's why A = (z²-ξxy), B = (ξx²-yz), C = (y²-xz)
@cherrymui Yes, it seems the source code works as expected. As for full addition, since we use mixed addition instead , so there is no impact on miller's algorithm.
cherrymui
changed the title
x/crypto/bn256: wrong formulas
x/crypto/bn256: wrong formulas in comments
Sep 22, 2021
cherrymui
added
NeedsFix
The path to resolution is known, but the work has not been done.
and removed
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
labels
Sep 22, 2021
bn256/gfp6.go : 251 in latest version of go
while the right one is :
in addition, http://arxiv.org/pdf/0904.0854v3.pdf which is referenced by optate.go : 9 also has wrong formulas :
The text was updated successfully, but these errors were encountered: