Skip to main content
Module

x/bls12_381/math.ts>ProjectivePoint

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

Constructors

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

Type Parameters

T extends Field<T>

Properties

private
_MPRECOMPUTES: undefined | [number, this[]]

Methods

private
maxBits()
private
precomputeWindow(W: number): this[]
private
validateScalar(n: bigint | number): bigint
private
wNAF(n: bigint): [this, this]
add(rhs: this): this
createPoint<TT extends this>(
x: T,
y: T,
z: T,
): TT
double(): this
fromAffineTuple(xy: [T, T]): this
getZero(): this
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?)