blob: e760d9eea68347c9009e4da25c379b77d0db25dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
(** BLS12-381 curves used for pairings *)
exception Not_on_curve
(* Raised when creating a curve element with a point that not on the curve. *)
exception Not_in_canonical_subgroup
(* Raised when creating a curve element with a point that not part of the
canonical subgroup defined by the curve's generator point. *)
module E : Curve.S
(* The BLS12-381 curve over [Fields.Fp]. *)
module E2 : Curve.S
(* The BLS12-381 curve over [Fields.Fp2]. *)
module E12 : Curve.S
(* The BLS12-381 curve over [Fields.Fp12]. *)
val twist : E2.t -> E12.t
(* [twist a] is the twisted point of [E2] in [E12] *)
|