arnaucube
arnaucube/snarkjsPublic Self-hosted repository
small fix bn128.js/millerLoop/loopCountNeg
arnaucube arnaucube@gmail.com
Fri, 02 Nov 2018 20:09:54 +0100
commit

6cdbec3b9babe69fb1c3b40f93dce494dc1fc0b4

parent

696e20f82b07ca7070258268326e046cd2e6f768

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/bn128.js → src/bn128.js

@@ -163,7 +163,7 @@ assert(this.F2.equals(Q1[2], this.F2.one));

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 @@ }

} - if (this.loopCountNef) + if (this.loopCountNeg) { f = this.F12.inverse(f); }