Skip to main content

point

Standalone Functions

point_to_bytes

point_to_bytes(p);

/ to waste the extra byte (encrypted log).

Parameters

NameType
pPoint

get_sign_of_point

get_sign_of_point(p);

Parameters

NameType
pPoint

point_from_x_coord

point_from_x_coord(x);

Parameters

NameType
xField

point_from_x_coord_and_sign

point_from_x_coord_and_sign(x, sign);

/ @param sign - The "sign" of the y coordinate - determines whether y <= (Fr.MODULUS - 1) / 2

Parameters

NameType
xField
signbool

test_point_to_bytes_positive_sign

test_point_to_bytes_positive_sign();

Takes no parameters.

test_point_to_bytes_negative_sign

test_point_to_bytes_negative_sign();

Takes no parameters.

test_point_from_x_coord_and_sign

test_point_from_x_coord_and_sign();

Takes no parameters.