package bls12-381-unix

  1. Overview
  2. Docs

Module FrSource

Sourcemodule Stubs : sig ... end
Sourcemodule Fr : sig ... end
include module type of struct include Fr end
Sourceexception Not_in_field of Bytes.t
Sourcetype t = Blst_bindings.Types.blst_fr_t Ctypes.ptr
Sourceval size_in_bytes : int
Sourceval order : Z.t
Sourceval pad_if_require : bytes -> bytes
Sourceval of_bytes_opt : bytes -> Blst_bindings.Types.blst_fr_t Ctypes.ptr option
Sourceval of_bytes_exn : Bytes.t -> Blst_bindings.Types.blst_fr_t Ctypes.ptr
Sourceval check_bytes : bytes -> bool Blst_stubs.return
Sourceval zero : Blst_bindings.Types.blst_fr_t Ctypes.ptr
Sourceval one : Blst_bindings.Types.blst_fr_t Ctypes.ptr
Sourceval to_bytes : Blst_bindings.Types.blst_fr_t Ctypes_static.ptr -> bytes
Sourceval eq : Blst_bindings.Types.blst_fr_t Ctypes_static.ptr -> Blst_bindings.Types.blst_fr_t Ctypes_static.ptr -> bool
Sourceval (=) : Blst_bindings.Types.blst_fr_t Ctypes_static.ptr -> Blst_bindings.Types.blst_fr_t Ctypes_static.ptr -> bool
Sourceval is_zero : Blst_bindings.Types.blst_fr_t Ctypes_static.ptr -> bool
Sourceval is_one : Blst_bindings.Types.blst_fr_t Ctypes_static.ptr -> bool
Sourceval random : ?state:Random.State.t -> unit -> Blst_bindings.Types.blst_fr_t Ctypes.ptr
Sourceval non_null_random : ?state:Random.State.t -> unit -> Blst_bindings.Types.blst_fr_t Ctypes.ptr
Sourceval add : Blst_bindings.Types.blst_fr_t Ctypes_static.ptr -> Blst_bindings.Types.blst_fr_t Ctypes_static.ptr -> Blst_bindings.Types.blst_fr_t Ctypes.ptr
Sourceval (+) : Blst_bindings.Types.blst_fr_t Ctypes_static.ptr -> Blst_bindings.Types.blst_fr_t Ctypes_static.ptr -> Blst_bindings.Types.blst_fr_t Ctypes.ptr
Sourceval mul : Blst_bindings.Types.blst_fr_t Ctypes_static.ptr -> Blst_bindings.Types.blst_fr_t Ctypes_static.ptr -> Blst_bindings.Types.blst_fr_t Ctypes.ptr
Sourceval (*) : Blst_bindings.Types.blst_fr_t Ctypes_static.ptr -> Blst_bindings.Types.blst_fr_t Ctypes_static.ptr -> Blst_bindings.Types.blst_fr_t Ctypes.ptr
Sourceval inverse_opt : Blst_bindings.Types.blst_fr_t Ctypes_static.ptr -> Blst_bindings.Types.blst_fr_t Ctypes.ptr option
Sourceval inverse_exn : Blst_bindings.Types.blst_fr_t Ctypes_static.ptr -> Blst_bindings.Types.blst_fr_t Ctypes.ptr
Sourceval sub : Blst_bindings.Types.blst_fr_t Ctypes_static.ptr -> Blst_bindings.Types.blst_fr_t Ctypes_static.ptr -> Blst_bindings.Types.blst_fr_t Ctypes.ptr
Sourceval square : Blst_bindings.Types.blst_fr_t Ctypes_static.ptr -> Blst_bindings.Types.blst_fr_t Ctypes.ptr
Sourceval double : Blst_bindings.Types.blst_fr_t Ctypes_static.ptr -> Blst_bindings.Types.blst_fr_t Ctypes.ptr
Sourceval negate : Blst_bindings.Types.blst_fr_t Ctypes_static.ptr -> Blst_bindings.Types.blst_fr_t Ctypes.ptr
Sourceval (-) : Blst_bindings.Types.blst_fr_t Ctypes_static.ptr -> Blst_bindings.Types.blst_fr_t Ctypes.ptr
Sourceval div_exn : Blst_bindings.Types.blst_fr_t Ctypes_static.ptr -> Blst_bindings.Types.blst_fr_t Ctypes_static.ptr -> Blst_bindings.Types.blst_fr_t Ctypes.ptr
Sourceval div_opt : Blst_bindings.Types.blst_fr_t Ctypes_static.ptr -> Blst_bindings.Types.blst_fr_t Ctypes_static.ptr -> Blst_bindings.Types.blst_fr_t Ctypes.ptr option
Sourceval (/) : Blst_bindings.Types.blst_fr_t Ctypes_static.ptr -> Blst_bindings.Types.blst_fr_t Ctypes_static.ptr -> Blst_bindings.Types.blst_fr_t Ctypes.ptr
Sourceval two_z : Z.t
Sourceval pow : Blst_bindings.Types.blst_fr_t Ctypes_static.ptr -> Z.t -> Blst_bindings.Types.blst_fr_t Ctypes.ptr
Sourceval (**) : Blst_bindings.Types.blst_fr_t Ctypes_static.ptr -> Z.t -> Blst_bindings.Types.blst_fr_t Ctypes.ptr
Sourceval to_string : Blst_bindings.Types.blst_fr_t Ctypes_static.ptr -> string
Sourceval of_z : Z.t -> Blst_bindings.Types.blst_fr_t Ctypes.ptr
Sourceval to_z : Blst_bindings.Types.blst_fr_t Ctypes_static.ptr -> Z.t
Sourceval of_string : string -> Blst_bindings.Types.blst_fr_t Ctypes.ptr
Sourceval factor_power_of_two : int * Z.t
Sourceval legendre_symbol : Blst_bindings.Types.blst_fr_t Ctypes_static.ptr -> Z.t
Sourceval is_quadratic_residue : Blst_bindings.Types.blst_fr_t Ctypes_static.ptr -> bool
Sourceval pick_non_square : unit -> Blst_bindings.Types.blst_fr_t Ctypes.ptr
Sourceval sqrt_opt : Blst_bindings.Types.blst_fr_t Ctypes_static.ptr -> Blst_bindings.Types.blst_fr_t Ctypes.ptr option
Sourceval fft : domain:t array -> points:t array -> t array
Sourceval ifft : domain:t array -> points:t array -> t array
OCaml

Innovation. Community. Security.