weierstrass, bls12-381: adjust var names for typescript flag
This commit is contained in:
parent
33a53006f7
commit
ebea4a4bcd
@ -193,7 +193,7 @@ export function weierstrassPoints<T>(opts: CurvePointsType<T>) {
|
||||
|
||||
const toBytes =
|
||||
CURVE.toBytes ||
|
||||
((c: ProjConstructor<T>, point: ProjPointType<T>, isCompressed: boolean) => {
|
||||
((_c: ProjConstructor<T>, point: ProjPointType<T>, _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;
|
||||
|
@ -1108,7 +1108,7 @@ export const bls12_381: CurveFn<Fp, Fp2, Fp6, Fp12> = 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
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user