Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecompressToG1 ¶
DecompressToG1 decompresses byte slice into G1 point by extracting Y parity bit from the first byte, extracting X value and calculating original Y value based on the extracted Y parity. The parity bit is encoded in the top byte as 0x01 (even) or 0x00 (odd).
func DecompressToG2 ¶
DecompressToG2 decompresses byte slice into G2 point by extracting Y parity bit from the first byte, extracting X value and calculating original Y value based on the extracted Y parity. The parity bit is encoded in the top byte as 0x01 (even) or 0x00 (odd).
func G1FromInts ¶
G1FromInts returns G1 point based on the provided x and y.
func G1HashToPoint ¶
G1HashToPoint hashes the provided byte slice, maps it into a G1 and returns it as a G1 point.
func G2FromInts ¶
G2FromInts returns G2 point based on the provided x and y in Fp^2.