aboutsummaryrefslogtreecommitdiff
path: root/lib/pairing.mli
diff options
context:
space:
mode:
authorNicholas Rodrigues Lordello <[email protected]>2025-08-01 18:02:12 +0200
committerNicholas Rodrigues Lordello <[email protected]>2025-08-01 18:02:12 +0200
commit51e1e445215c14e3ce90ab12906f07ffb2b09aaf (patch)
tree97bac16ee731e4f531dc778cd7bbf650939ad891 /lib/pairing.mli
parent4ce648df90034d7dade55cadd5bd6251619cf922 (diff)
Refactor Project
We now put all field, curve, and pairing instantiations under `bls12_381` module. We no longer have an `E12` curve - since we don't use it.
Diffstat (limited to 'lib/pairing.mli')
-rw-r--r--lib/pairing.mli48
1 files changed, 0 insertions, 48 deletions
diff --git a/lib/pairing.mli b/lib/pairing.mli
deleted file mode 100644
index 3d63df6..0000000
--- a/lib/pairing.mli
+++ /dev/null
@@ -1,48 +0,0 @@
-module G1 : Curve.S with type t = Curves.E.t and type f = Fields.Fp.t
-module G2 : Curve.S with type t = Curves.E2.t and type f = Fields.Fp2.t
-
-module Gt : sig
- type t
-
- val id : t
- (** The group's identity element. *)
-
- val g : t
- (** The group's generator. *)
-
- val dot : t -> t -> t
- (** [dot a b] is the group operation applied to [a] and [b]. *)
-
- val inv : t -> t
- (** [inv a] is the inverse of [a]. Note that the invariant
- [equal id (dot a (inv a))] always holds. *)
-
- val equal : t -> t -> bool
- (** [equal a b] is true if [a] has the same value as [b] *)
-
- val to_f : t -> Fields.Fp12.t
- (** [to_fp12 a] is the underlying field value of the group element [a]. *)
-
- val to_string : t -> string
- (** [to_string a] is the string representation of [a]. *)
-
- (** Unsafe pairing group construction functions. *)
- module Unsafe : sig
- val of_f_unchecked : Fields.Fp12.t -> t
- (** [of_fp12_unchecked a] is a pairing element of value [a]. This function
- does not check whether the value actually belongs to the pairing group
- [Gt]. *)
-
- val of_string_unchecked : string -> t
- (** [of_string_unchecked s] returns the pairing element represented by [s].
- This function does not check whether the value belongs to the group
- [Gt]. *)
- end
-end
-
-val e : G1.t -> G2.t -> Gt.t
-(** [e p q] is the elliptic curve pairing of [p] and [q]. *)
-
-val check : (G1.t * G2.t) list -> bool
-(** [check pairs] checks whether the product of the pairings is equal to
- [Gt.id]. *)