@aptos-labs/ts-sdk - v6.0.0
    Preparing search index...

    Interface CurvePoint<F, P>

    Base interface for all elliptic curve Points.

    interface CurvePoint<F, P extends CurvePoint<F, P>> {
        x: F;
        y: F;
        Z?: F;
        add(other: P): P;
        assertValidity(): void;
        clearCofactor(): P;
        double(): P;
        equals(other: P): boolean;
        is0(): boolean;
        isSmallOrder(): boolean;
        isTorsionFree(): boolean;
        multiply(scalar: bigint): P;
        multiplyUnsafe(scalar: bigint): P;
        negate(): P;
        precompute(windowSize?: number, isLazy?: boolean): P;
        subtract(other: P): P;
        toAffine(invertedZ?: F): AffinePoint<F>;
        toBytes(): Uint8Array;
        toHex(): string;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Methods

    • Parameters

      • other: P

      Returns P

    • Returns void

    • Returns P

    • Returns P

    • Parameters

      • other: P

      Returns boolean

    • Returns boolean

    • Returns boolean

    • Returns boolean

    • Parameters

      • scalar: bigint

      Returns P

    • Parameters

      • scalar: bigint

      Returns P

    • Returns P

    • Massively speeds up p.multiply(n) by using precompute tables (caching). See wNAF.

      Parameters

      • OptionalwindowSize: number
      • OptionalisLazy: boolean

        calculate cache now. Default (true) ensures it's deferred to first multiply()

      Returns P

    • Parameters

      • other: P

      Returns P

    • Converts point to 2D xy affine coordinates

      Parameters

      • OptionalinvertedZ: F

      Returns AffinePoint<F>

    • Returns Uint8Array

    • Returns string

    Properties

    x: F

    Affine x coordinate. Different from projective / extended X coordinate.

    y: F

    Affine y coordinate. Different from projective / extended Y coordinate.

    Z?: F