package bls12-381-unix

  1. Overview
  2. Docs
module Stubs : sig ... end
module G1 : sig ... end
include module type of struct include G1 end
exception Not_on_curve of Stdlib.Bytes.t
val size_in_bytes : int
module Scalar = G1.Scalar
val check_bytes : bytes -> bool
val of_bytes_opt : bytes -> Blst_bindings.Types.blst_g1_t Ctypes.ptr option
val of_bytes_exn : Stdlib.Bytes.t -> Blst_bindings.Types.blst_g1_t Ctypes.ptr
val of_compressed_bytes_opt : bytes -> Blst_bindings.Types.blst_g1_t Ctypes.ptr option
val of_compressed_bytes_exn : Stdlib.Bytes.t -> Blst_bindings.Types.blst_g1_t Ctypes.ptr
val to_compressed_bytes : Blst_bindings.Types.blst_g1_t Ctypes_static.ptr -> bytes
val random : ?state:Stdlib.Random.State.t -> unit -> Blst_bindings.Types.blst_g1_t Ctypes.ptr
val of_z_opt : x:Z.t -> y:Z.t -> Blst_bindings.Types.blst_g1_t Ctypes.ptr option
val fft : domain:Scalar.t array -> points:t array -> t array
val ifft : domain:Scalar.t array -> points:t array -> t array
val hash_to_curve : bytes -> bytes -> Blst_bindings.Types.blst_g1_t Ctypes.ptr
OCaml

Innovation. Community. Security.