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