Class: pointJac

sjcl.ecc.pointJac

new pointJac(x, y, z, curve)

Represents a point on a curve in Jacobian coordinates. Coordinates can be specified as bigInts or strings (which will be converted to bigInts).
Parameters:
Name Type Description
x bigInt/string The x coordinate.
y bigInt/string The y coordinate.
z bigInt/string The z coordinate.
curve sjcl.ecc.curve The curve that this point lies on.
Source:

Methods

add(S, T) → {sjcl.ecc.pointJac}

Adds S and T and returns the result in Jacobian coordinates. Note that S must be in Jacobian coordinates and T must be in affine coordinates.
Parameters:
Name Type Description
S sjcl.ecc.pointJac One of the points to add, in Jacobian coordinates.
T sjcl.ecc.point The other point to add, in affine coordinates.
Source:
Returns:
The sum of the two points, in Jacobian coordinates.
Type
sjcl.ecc.pointJac

doubl() → {sjcl.ecc.pointJac}

doubles this point.
Source:
Returns:
The doubled point.
Type
sjcl.ecc.pointJac

mult(k, affine) → {sjcl.ecc.pointJac}

Multiply this point by k and return the answer in Jacobian coordinates.
Parameters:
Name Type Description
k bigInt The coefficient to multiply by.
affine sjcl.ecc.point This point in affine coordinates.
Source:
Returns:
The result of the multiplication, in Jacobian coordinates.
Type
sjcl.ecc.pointJac

mult2(k, affine, k2, affine) → {sjcl.ecc.pointJac}

Multiply this point by k, added to affine2*k2, and return the answer in Jacobian coordinates.
Parameters:
Name Type Description
k bigInt The coefficient to multiply this by.
affine sjcl.ecc.point This point in affine coordinates.
k2 bigInt The coefficient to multiply affine2 this by.
affine sjcl.ecc.point The other point in affine coordinates.
Source:
Returns:
The result of the multiplication and addition, in Jacobian coordinates.
Type
sjcl.ecc.pointJac

toAffine() → {sjcl.ecc.point}

Returns a copy of this point converted to affine coordinates.
Source:
Returns:
The converted point.
Type
sjcl.ecc.point