package bls12-381

  1. Overview
  2. Docs
exception FailToComputeFinalExponentiation of Fq12.t
val miller_loop : (G1.t * G2.t) list -> Fq12.t

Compute the miller loop on a list of points. Return Fq12.one if the list is empty

val miller_loop_simple : G1.t -> G2.t -> Fq12.t

Compute the miller loop on a single tuple of point

val pairing : G1.t -> G2.t -> Fq12.t

Compute a pairing result of a list of points

val pairing_check : (G1.t * G2.t) list -> bool

pairing_check points returns true if pairing points = GT.one. Return true if the empty list is given

val final_exponentiation_opt : Fq12.t -> Fq12.t option

Compute the final exponentiation of the given point. Returns a None if the point is null

val final_exponentiation_exn : Fq12.t -> Fq12.t

Compute the final exponentiation of the given point. Raise FailToComputeFinalExponentiation if the point is null

OCaml

Innovation. Community. Security.