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