core/vm, crypto/bn256: fix bn256 use and pairing corner case

This commit is contained in:
Péter Szilágyi
2017-08-17 16:46:46 +03:00
parent 0b978f91b6
commit 1335a6cc8c
4 changed files with 81 additions and 16 deletions

View File

@@ -393,6 +393,5 @@ func optimalAte(a *twistPoint, b *curvePoint, pool *bnPool) *gfP12 {
if a.IsInfinity() || b.IsInfinity() {
ret.SetOne()
}
return ret
}