diff options
Diffstat (limited to 'lib/pairing.mli')
| -rw-r--r-- | lib/pairing.mli | 48 |
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]. *) |
