From ebea4a4bcd599a9ee4fa721700db5cd22021aa93 Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Wed, 12 Jul 2023 18:28:38 +0000 Subject: [PATCH] weierstrass, bls12-381: adjust var names for typescript flag --- src/abstract/weierstrass.ts | 4 ++-- src/bls12-381.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/abstract/weierstrass.ts b/src/abstract/weierstrass.ts index cac8aa9..22fef3f 100644 --- a/src/abstract/weierstrass.ts +++ b/src/abstract/weierstrass.ts @@ -193,7 +193,7 @@ export function weierstrassPoints(opts: CurvePointsType) { const toBytes = CURVE.toBytes || - ((c: ProjConstructor, point: ProjPointType, isCompressed: boolean) => { + ((_c: ProjConstructor, point: ProjPointType, _isCompressed: boolean) => { const a = point.toAffine(); return ut.concatBytes(Uint8Array.from([0x04]), Fp.toBytes(a.x), Fp.toBytes(a.y)); }); @@ -707,7 +707,7 @@ export function weierstrass(curveDef: CurveType): CurveFn { isWithinCurveOrder, } = weierstrassPoints({ ...CURVE, - toBytes(c, point, isCompressed: boolean): Uint8Array { + toBytes(_c, point, isCompressed: boolean): Uint8Array { const a = point.toAffine(); const x = Fp.toBytes(a.x); const cat = ut.concatBytes; diff --git a/src/bls12-381.ts b/src/bls12-381.ts index 5f6fdc2..d4c7250 100644 --- a/src/bls12-381.ts +++ b/src/bls12-381.ts @@ -1108,7 +1108,7 @@ export const bls12_381: CurveFn = bls({ }, // Clear cofactor of G1 // https://eprint.iacr.org/2019/403 - clearCofactor: (c, point) => { + clearCofactor: (_c, point) => { // return this.multiplyUnsafe(CURVE.h); return point.multiplyUnsafe(bls12_381.params.x).add(point); // x*P + P },