UNPKG

@nikkolasg/noble-bls12-381

Version:

Noble BLS12-381 pairing-friendly curve. High-security, easily auditable, 0-dep aggregated signatures & pubkey.

27 lines (26 loc) 753 B
import { Group } from "./group"; import { Fp12, BigintTwelve } from "./fp12"; declare type Constructor<T> = { new (...args: any[]): Group<T>; }; export declare class Point<T> { x: Group<T>; y: Group<T>; z: Group<T>; private C; static get W(): Fp12; static get W_SQUARE(): Fp12; static get W_CUBE(): Fp12; constructor(x: Group<T>, y: Group<T>, z: Group<T>, C: Constructor<T>); isEmpty(): boolean; isOnCurve(b: Group<T>): boolean; equals(other: Point<T>): boolean; negative(): Point<T>; to2D(): Group<T>[]; double(): Point<T>; add(other: Point<T>): Point<T>; subtract(other: Point<T>): Point<T>; multiply(n: number | bigint): Point<T>; twist(): Point<BigintTwelve>; } export {};