lotus-sdk
Version:
Central repository for several classes of tools for integrating with, and building for, the Lotusia ecosystem
20 lines • 624 B
TypeScript
import { BN } from './bn.js';
export declare class Point {
private _point;
constructor(x: BN | string, y: BN | string, isRed?: boolean);
static fromX(odd: boolean, x: BN | string): Point;
static getG(): Point;
static getN(): BN;
getX(): BN;
getY(): BN;
validate(): Point;
isInfinity(): boolean;
add(other: Point): Point;
mul(scalar: BN): Point;
mulAdd(scalar1: BN, other: Point, scalar2: BN): Point;
eq(other: Point): boolean;
static pointToCompressed(point: Point): Buffer;
hasSquare(): boolean;
isSquare(x: BN): boolean;
}
//# sourceMappingURL=point.d.ts.map