package bls12-381-unix

  1. Overview
  2. Docs
module Stubs : sig ... end
module G2 : sig ... end
include module type of struct include G2 end
exception Not_on_curve of Stdlib.Bytes.t
val size_in_bytes : int
module Scalar = G2.Scalar
val check_bytes : bytes -> bool
val of_bytes_opt : bytes -> Blst_bindings.Types.blst_g2_t Ctypes.ptr option
val of_bytes_exn : Stdlib.Bytes.t -> Blst_bindings.Types.blst_g2_t Ctypes.ptr
val of_compressed_bytes_opt : bytes -> Blst_bindings.Types.blst_g2_t Ctypes.ptr option
val of_compressed_bytes_exn : Stdlib.Bytes.t -> Blst_bindings.Types.blst_g2_t Ctypes.ptr
val to_compressed_bytes : Blst_bindings.Types.blst_g2_t Ctypes_static.ptr -> bytes
val random : ?state:Stdlib.Random.State.t -> unit -> Blst_bindings.Types.blst_g2_t Ctypes.ptr
val of_z_opt : x:(Z.t * Z.t) -> y:(Z.t * Z.t) -> Blst_bindings.Types.blst_g2_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_g2_t Ctypes.ptr
OCaml

Innovation. Community. Security.