Skip to main content
Module

x/bls12_381/math.d.ts>ProjectivePoint

Fastest JS implementation of BLS12-381. Auditable, secure, 0-dependency aggregated signatures & pairings
Go to Latest
class ProjectivePoint
Abstract
import { ProjectivePoint } from "https://deno.land/x/bls12_381@1.1.0/math.d.ts";

Constructors

new
ProjectivePoint(
x: T,
y: T,
z: T,
C: Constructor<T>,
)

Type Parameters

T extends Field<T>

Properties

private
_MPRECOMPUTES
private
readonly
C
private
maxBits
private
precomputeWindow
private
validateScalar
private
wNAF
readonly
x: T
readonly
y: T
readonly
z: T

Methods

add(rhs: this): this
calcMultiplyPrecomputes(W: number): void
createPoint<TT extends this>(
x: T,
y: T,
z: T,
): TT
double(): this
equals(rhs: ProjectivePoint<T>): boolean
fromAffineTuple(xy: [T, T]): this
getZero(): this
isZero(): boolean
multiply(scalar: bigint): this
multiplyPrecomputed(scalar: bigint): this
multiplyUnsafe(scalar: bigint): this
negate(): this
normalizeZ(points: this[]): this[]
subtract(rhs: this): this
toAffine(invZ?: T): [T, T]
toAffineBatch(points: ProjectivePoint<T>[]): [T, T][]
toString(isAffine?: boolean): string