package bls12-381-legacy

  1. Overview
  2. Docs
module Fq12_stubs : sig ... end
module Stubs : sig ... end
include sig ... end
exception Not_in_field of Bytes.t
type t
val order : Z.t
val size_in_bytes : int
val check_bytes : Bytes.t -> bool
val zero : t
val one : t
val is_zero : t -> bool
val is_one : t -> bool
val random : ?state:Random.State.t -> unit -> t
val non_null_random : ?state:Random.State.t -> unit -> t
val add : t -> t -> t
val (+) : t -> t -> t
val sub : t -> t -> t
val mul : t -> t -> t
val (*) : t -> t -> t
val eq : t -> t -> bool
val (=) : t -> t -> bool
val negate : t -> t
val (-) : t -> t
val inverse_exn : t -> t
val inverse_opt : t -> t option
val div_exn : t -> t -> t
val div_opt : t -> t -> t option
val (/) : t -> t -> t
val square : t -> t
val double : t -> t
val pow : t -> Z.t -> t
val (**) : t -> Z.t -> t
val of_bytes_exn : Bytes.t -> t
val of_bytes_opt : Bytes.t -> t option
val to_bytes : t -> Bytes.t
val of_z : Z.t -> Z.t -> Z.t -> Z.t -> Z.t -> Z.t -> Z.t -> Z.t -> Z.t -> Z.t -> Z.t -> Z.t -> t