Skip to main content
Module

x/secp256k1/mod.ts>ProjectivePoint

Fastest 4KB JS implementation of secp256k1 signatures and ECDH
Latest
class ProjectivePoint
Re-export
import { ProjectivePoint } from "https://deno.land/x/secp256k1@2.1.0/mod.ts";

Constructors

new
ProjectivePoint(
px: bigint,
py: bigint,
pz: bigint,
)

Properties

readonly
x
readonly
y

Methods

add(other: Point)
aff()
equals(other: Point): boolean
mul(n: bigint, safe?)
mulAddQUns(
R: Point,
u1: bigint,
u2: bigint,
)
multiply(n: bigint)
ok()
toAffine(): AffinePoint
toHex(isCompressed?)
toRawBytes(isCompressed?)

Static Properties

readonly
BASE: Point
readonly
ZERO: Point

Static Methods

fromAffine(p: AffinePoint)
fromHex(hex: Hex): Point
fromPrivateKey(k: PrivKey)