package bls12-381-unix

  1. Overview
  2. Docs
module Stubs : sig ... end
module Fr : sig ... end
include module type of struct include Fr end
exception Not_in_field of Stdlib.Bytes.t
val size_in_bytes : int
val order : Z.t
val pad_if_require : bytes -> bytes
val of_bytes_opt : bytes -> Blst_bindings.Types.blst_fr_t Ctypes.ptr option
val of_bytes_exn : Stdlib.Bytes.t -> Blst_bindings.Types.blst_fr_t Ctypes.ptr
val check_bytes : bytes -> bool Blst_stubs.return
val random : ?state:Stdlib.Random.State.t -> unit -> Blst_bindings.Types.blst_fr_t Ctypes.ptr
val non_null_random : ?state:Stdlib.Random.State.t -> unit -> Blst_bindings.Types.blst_fr_t Ctypes.ptr
val two_z : Z.t
val of_string : string -> Blst_bindings.Types.blst_fr_t Ctypes.ptr
val factor_power_of_two : int * Z.t
val is_quadratic_residue : Blst_bindings.Types.blst_fr_t Ctypes_static.ptr -> bool
val pick_non_square : unit -> Blst_bindings.Types.blst_fr_t Ctypes.ptr
val fft : domain:t array -> points:t array -> t array
val ifft : domain:t array -> points:t array -> t array
OCaml

Innovation. Community. Security.