From 6cdbec3b9babe69fb1c3b40f93dce494dc1fc0b4 Mon Sep 17 00:00:00 2001 From: arnaucube Date: Fri, 2 Nov 2018 20:09:54 +0100 Subject: [PATCH] small fix bn128.js/millerLoop/loopCountNeg --- src/bn128.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bn128.js b/src/bn128.js index 105ec81..d35d4f7 100644 --- a/src/bn128.js +++ b/src/bn128.js @@ -163,7 +163,7 @@ class BN128 { const Q2 = this.G2.affine(this._g2MulByQ(Q1)); assert(this.F2.equals(Q2[2], this.F2.one)); - if (this.loopCountNef) + if (this.loopCountNeg) { R.Y = this.F2.neg(R.Y); } @@ -213,7 +213,7 @@ class BN128 { } - if (this.loopCountNef) + if (this.loopCountNeg) { f = this.F12.inverse(f); }