Skip to main content
Version: v2.0_alpha

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

NameTypeDescription
xbigintthe x coordinate
ybigintthe y coordinate

Returns

G1Point

Defined in

crypto/ts/babyjub.ts:22

Properties

x

x: bigint

Defined in

crypto/ts/babyjub.ts:13


y

y: bigint

Defined in

crypto/ts/babyjub.ts:15

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

NameType
xstring
ystring

Defined in

crypto/ts/babyjub.ts:42


equals

equals(pt): boolean

Check whether two points are equal

Parameters

NameTypeDescription
ptG1Pointthe point to compare with

Returns

boolean

whether they are equal or not

Defined in

crypto/ts/babyjub.ts:34