new curve(p, r, a, x, y)
Construct an elliptic curve. Most users will not use this and instead start with one of the NIST curves defined below.
Parameters:
Name | Type | Description |
---|---|---|
p |
bigInt | The prime modulus. |
r |
bigInt | The prime order of the curve. |
a |
bigInt | The constant a in the equation of the curve y^2 = x^3 + ax + b (for NIST curves, a is always -3). |
x |
bigInt | The x coordinate of a base point of the curve. |
y |
bigInt | The y coordinate of a base point of the curve. |