From 528a5ca61156f4abb6f5eedd55922b8b965b7618 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marin=20Petruni=C4=87?= Date: Thu, 29 Aug 2019 14:14:46 +0200 Subject: [PATCH] addess PR issues --- src/helpers/g1point.ts | 2 +- src/index.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/helpers/g1point.ts b/src/helpers/g1point.ts index 7a52a5f..75234fd 100644 --- a/src/helpers/g1point.ts +++ b/src/helpers/g1point.ts @@ -28,7 +28,7 @@ export class G1point { return new G1point(sum); } - public addRaW(other: bytes48): G1point { + public addRaw(other: bytes48): G1point { return this.add(G1point.fromBytesCompressed(other)); } diff --git a/src/index.ts b/src/index.ts index 5a69466..4f0e48c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -106,7 +106,7 @@ export function verifyMultiple(publicKeys: BLSPubkey[], messageHashes: bytes32[] return { hash: previous.hash, publicKey: previous.publicKey ? - previous.publicKey.addRaW(publicKeys[index]) + previous.publicKey.addRaw(publicKeys[index]) : G1point.fromBytesCompressed(publicKeys[index]), }; @@ -139,7 +139,6 @@ export function verifyMultiple(publicKeys: BLSPubkey[], messageHashes: bytes32[] const e2 = ElipticCurvePairing.pair(G1point.generator(), sig); return e2.equals(eCombined); } catch (e) { - console.log(e); return false; } }