From 80d07d780f130f556401148ae7d971df58797728 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marin=20Petruni=C4=87?= Date: Fri, 16 Aug 2019 13:49:51 +0200 Subject: [PATCH] fix lint --- src/helpers/g1point.ts | 4 ++-- src/helpers/g2point.ts | 8 ++++---- src/helpers/utils.ts | 2 +- src/privateKey.ts | 2 +- src/web.ts | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/helpers/g1point.ts b/src/helpers/g1point.ts index 7133f3b..60b0218 100644 --- a/src/helpers/g1point.ts +++ b/src/helpers/g1point.ts @@ -96,7 +96,7 @@ export class G1point { const x = new ctx.FP(point.getX()); const yneg = new ctx.FP(point.getY()); yneg.neg(); - point.setxy(x.redc(), yneg.redc()) + point.setxy(x.redc(), yneg.redc()); } return new G1point(point); @@ -115,7 +115,7 @@ export class G1point { random.randomBuffer(FP_POINT_LENGTH), 0 ) - ) + ); } while (ecp.is_infinity()); return new G1point(ecp); } diff --git a/src/helpers/g2point.ts b/src/helpers/g2point.ts index e58d1ae..82e1155 100644 --- a/src/helpers/g2point.ts +++ b/src/helpers/g2point.ts @@ -1,6 +1,6 @@ import {BIG} from "@chainsafe/milagro-crypto-js/src/big"; import {ECP2} from "@chainsafe/milagro-crypto-js/src/ecp2"; -import { sha256 } from 'js-sha256'; +import {sha256} from 'js-sha256'; import ctx from "../ctx"; import * as random from "secure-random"; import {calculateYFlag, getModulus, padLeft} from "./utils"; @@ -89,7 +89,7 @@ export class G2point { xRe.add(one); xRe.norm(); point = new ctx.ECP2(); - point.setx(new ctx.FP2(xRe, xIm)) + point.setx(new ctx.FP2(xRe, xIm)); } return new G2point(G2point.scaleWithCofactor(G2point.normaliseY(point))); } @@ -189,7 +189,7 @@ export class G2point { 0 ) ) - ) + ); } while (point.is_infinity()); return new G2point(point); } @@ -240,7 +240,7 @@ export class G2point { ) { const newPoint = new ctx.ECP2(); newPoint.setxy(point.getX(), yNeg); - return newPoint + return newPoint; } else { return point; } diff --git a/src/helpers/utils.ts b/src/helpers/utils.ts index 4bac7ba..25f1367 100644 --- a/src/helpers/utils.ts +++ b/src/helpers/utils.ts @@ -23,7 +23,7 @@ export function getModulus(): BIG { 'hex' ), 0 - ) + ); } export function calculateYFlag(yIm: BIG): boolean { diff --git a/src/privateKey.ts b/src/privateKey.ts index 0bb4161..e525a0c 100644 --- a/src/privateKey.ts +++ b/src/privateKey.ts @@ -48,7 +48,7 @@ export class PrivateKey { ), 0 ) - ) + ); } public static fromHexString(value: string): PrivateKey { diff --git a/src/web.ts b/src/web.ts index 08397b6..519e5e3 100644 --- a/src/web.ts +++ b/src/web.ts @@ -1,8 +1,8 @@ -import bls from "./index" +import bls from "./index"; // eslint-disable-next-line @typescript-eslint/no-explicit-any // @ts-ignore (function (window: any) { - window.bls = bls + window.bls = bls; // @ts-ignore })(window);