Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Bls12_381.GTSourcePrime subgroup of Fq12, of order Fr.order, represented additively
Represents an element in the prime subgroup
Minimal number of bytes required to encode a value of the group
Actual number of bytes allocated for a value of type t
Checks the bytes represent a point in the prime subgroup. The expected encoding is the same than Fq12.of_bytes_exn.
Same than Fq12.of_bytes_exn but also verifies the element is in the prime subgroup. Raise Not_in_group if the element is not in the prime subgroup.
Same than of_bytes_exn but returns an option instead of an exception.
Same than Fq12.to_bytes.
A generator of the group. It is set to the result of Pairing.pairing G1.one G2.one.
Generate a random element. The function ensures the element is in the prime subgroup.
The routines in the module Random.State are used to generate the elements. A state can be given to the function to be used. If no state is given, Random.get_state is used.
To create a value of type Random.State.t, you can use Random.State.make [|42|].
negate x returns the opposite of x. It is equivalent to Fq12.inverse_exn x.