Removed useless commas

This commit is contained in:
stanislasdrg@gmail.com 2019-02-07 22:04:47 +00:00
parent b7f5cce74b
commit d5d2aa8599
2 changed files with 6 additions and 6 deletions

View File

@ -200,7 +200,7 @@ class BN128 {
f, f,
c.ell_0, 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, )); this.F2.mulScalar(c.ell_VV , pre1.PX));
if (bit) if (bit)
{ {
@ -208,8 +208,8 @@ class BN128 {
f = this._mul_by_024( f = this._mul_by_024(
f, f,
c.ell_0, 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, )); this.F2.mulScalar(c.ell_VV, pre1.PX));
} }
} }
@ -230,7 +230,7 @@ class BN128 {
f = this._mul_by_024( f = this._mul_by_024(
f, f,
c.ell_0, 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)); this.F2.mulScalar(c.ell_VV, pre1.PX));
return f; return f;

View File

@ -50,7 +50,7 @@ module.exports = function isValid(vk_verifier, proof, publicSignals) {
if (! bn128.F12.equals( if (! bn128.F12.equals(
bn128.F12.mul( bn128.F12.mul(
bn128.pairing( G1.add(full_pi_a, proof.pi_c) , vk_verifier.vk_gb_2 ), 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 ))) bn128.pairing( proof.pi_kp , vk_verifier.vk_g )))
return false; return false;
@ -59,7 +59,7 @@ module.exports = function isValid(vk_verifier, proof, publicSignals) {
bn128.pairing( full_pi_a , proof.pi_b ), bn128.pairing( full_pi_a , proof.pi_b ),
bn128.F12.mul( bn128.F12.mul(
bn128.pairing( proof.pi_h , vk_verifier.vk_z ), 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; return false;