Merge pull request #14 from stanislasdrg/master

Removed useless commas
This commit is contained in:
Jordi Baylina 2019-02-14 23:59:59 +01:00 committed by GitHub
commit eeba050585
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

@ -205,7 +205,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)
{
@ -213,8 +213,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));
}
}
@ -235,7 +235,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;

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