package bls12-381

  1. Overview
  2. Docs

Module Bls12_381.PairingSource

Provides routines to compute the pairing over G1 x G2 -> GT

Sourceexception FailToComputeFinalExponentiation of Fq12.t
Sourceval 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.

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

Compute the miller loop on a single tuple of point.

Sourceval pairing : G1.t -> G2.t -> GT.t

Compute a pairing result of a list of points.

Sourceval 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.

Sourceval final_exponentiation_opt : Fq12.t -> GT.t option

Compute the final exponentiation of the given point. Returns None if the point is equal to Fq12.zero

Sourceval final_exponentiation_exn : Fq12.t -> GT.t

Compute the final exponentiation of the given point. Raises FailToComputeFinalExponentiation if the point is equal to Fq12.zero

OCaml

Innovation. Community. Security.