From d5d2aa859962e46b35aa573e8256773f6df88a7c Mon Sep 17 00:00:00 2001 From: "stanislasdrg@gmail.com" Date: Thu, 7 Feb 2019 22:04:47 +0000 Subject: [PATCH] Removed useless commas --- src/bn128.js | 8 ++++---- src/verifier_original.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/bn128.js b/src/bn128.js index b9097df..61c4a45 100644 --- a/src/bn128.js +++ b/src/bn128.js @@ -200,7 +200,7 @@ class BN128 { f, c.ell_0, this.F2.mulScalar(c.ell_VW , pre1.PY), - this.F2.mulScalar(c.ell_VV , pre1.PX, )); + this.F2.mulScalar(c.ell_VV , pre1.PX)); if (bit) { @@ -208,8 +208,8 @@ class BN128 { f = this._mul_by_024( f, c.ell_0, - this.F2.mulScalar(c.ell_VW, pre1.PY, ), - this.F2.mulScalar(c.ell_VV, pre1.PX, )); + this.F2.mulScalar(c.ell_VW, pre1.PY), + this.F2.mulScalar(c.ell_VV, pre1.PX)); } } @@ -230,7 +230,7 @@ class BN128 { f = this._mul_by_024( f, c.ell_0, - this.F2.mulScalar(c.ell_VW, pre1.PY, ), + this.F2.mulScalar(c.ell_VW, pre1.PY), this.F2.mulScalar(c.ell_VV, pre1.PX)); return f; diff --git a/src/verifier_original.js b/src/verifier_original.js index 2cb8ef0..2bea309 100644 --- a/src/verifier_original.js +++ b/src/verifier_original.js @@ -50,7 +50,7 @@ module.exports = function isValid(vk_verifier, proof, publicSignals) { if (! bn128.F12.equals( bn128.F12.mul( bn128.pairing( G1.add(full_pi_a, proof.pi_c) , vk_verifier.vk_gb_2 ), - bn128.pairing( vk_verifier.vk_gb_1 , proof.pi_b ), + bn128.pairing( vk_verifier.vk_gb_1 , proof.pi_b ) ), bn128.pairing( proof.pi_kp , vk_verifier.vk_g ))) return false; @@ -59,7 +59,7 @@ module.exports = function isValid(vk_verifier, proof, publicSignals) { bn128.pairing( full_pi_a , proof.pi_b ), bn128.F12.mul( bn128.pairing( proof.pi_h , vk_verifier.vk_z ), - bn128.pairing( proof.pi_c , G2.g ), + bn128.pairing( proof.pi_c , G2.g ) ))) return false;