import { ed } from "https://deno.land/x/earthstar@v10.0.0-beta.7/deps.ts";
const { Point } = ed;
Default Point works in affine coordinates: (x, y)
Methods
_setWindowSize(windowSize: number)
isTorsionFree(): boolean
negate()
toHex(): string
toRawBytes(): Uint8Array
toX25519(): Uint8Array
Converts to Montgomery; aka x coordinate of curve25519. We don't have fromX25519, because we don't know sign.
u, v: curve25519 coordinates
x, y: ed25519 coordinates
(u, v) = ((1+y)/(1-y), sqrt(-486664)*u/x)
(x, y) = (sqrt(-486664)*u/v, (u-1)/(u+1))
Static Methods
fromHex(hex: Hex, strict?)
fromPrivateKey(privateKey: PrivKey)