diff --git a/src/abstract/weierstrass.ts b/src/abstract/weierstrass.ts index 82e7d42..06a46bb 100644 --- a/src/abstract/weierstrass.ts +++ b/src/abstract/weierstrass.ts @@ -123,6 +123,7 @@ function validatePointOpts(curve: CurvePointsType) { } export type CurvePointsRes = { + CURVE: ReturnType>; ProjectivePoint: ProjConstructor; normPrivateKeyToScalar: (key: PrivKey) => bigint; weierstrassEquation: (x: T) => T; @@ -187,7 +188,7 @@ export const DER = { // prettier-ignore const _0n = BigInt(0), _1n = BigInt(1), _2n = BigInt(2), _3n = BigInt(3), _4n = BigInt(4); -export function weierstrassPoints(opts: CurvePointsType) { +export function weierstrassPoints(opts: CurvePointsType): CurvePointsRes { const CURVE = validatePointOpts(opts); const { Fp } = CURVE; // All curves has same field / group length as for now, but they can differ