G1Point
Notice
A class representing a point on the first group (G1) of the Jubjub curve
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new G1Point(x, y): G1Point
Create a new instance of G1Point
Parameters
| Name | Type | Description | 
|---|---|---|
| x | bigint | the x coordinate | 
| y | bigint | the y coordinate | 
Returns
Defined in
Properties
x
• x: bigint
Defined in
y
• y: bigint
Defined in
Methods
asContractParam
▸ asContractParam(): Object
Return the point as a contract param in the form of an object
Returns
Object
the point as a contract param
| Name | Type | 
|---|---|
| x | string | 
| y | string | 
Defined in
equals
▸ equals(pt): boolean
Check whether two points are equal
Parameters
| Name | Type | Description | 
|---|---|---|
| pt | G1Point | the point to compare with | 
Returns
boolean
whether they are equal or not