package
1.6.0
Repository: https://github.com/cloudflare/circl.git
Documentation: pkg.go.dev

# Packages

Package ff provides finite fields and groups useful for the BLS12-381 curve.

# Functions

G1Generator returns the generator point of G1.
G2Generator returns the generator point of G2.
Order returns the order of the pairing groups, returned as a big-endian slice.
Pair calculates the ate-pairing of P and Q.
ProdPair calculates the product of pairings, i.e., \Prod_i pair(Pi,Qi)^ni.
ProdPairFrac computes the product e(P, Q)^sign where sign is 1 or -1.

# Constants

G1Size is the length in bytes of an element in G1 in uncompressed form..
G1SizeCompressed is the length in bytes of an element in G1 in compressed form.
G2Size is the length in bytes of an element in G2 in uncompressed form..
G2SizeCompressed is the length in bytes of an element in G2 in compressed form.
GtSize is the length in bytes of an element in Gt.

# Structs

G1 is a point in the BLS12 curve over Fp.
G2 is a point in the twist of the BLS12 curve over Fp2.
Gt represents an element of the output (multiplicative) group of a pairing.

# Type aliases

Scalar represents positive integers in the range 0 <= x < Order.