package bls12-381
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=55ea1fb8bb3273a7fc270ca8f650d45c56449665619482aad9bc12f3ea736b7e
sha512=fec850fc2d17d7490bbabd5147d62aad13b3aaed8774270f8a38ab419670ed03e0fd30cf8642a97984eca5c2446726fe590ad99c015f7ec50919dc7652f25053
doc/bls12-381/Bls12_381/GT/index.html
Module Bls12_381.GT
Source
Prime 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
.