package bls12-381-unix

  1. Overview
  2. Docs
exception Not_on_curve of Bytes.t
val size_in_bytes : int
module Scalar = Fr
val check_bytes : bytes -> bool
val of_bytes_opt : bytes -> Blst_bindings.Types.blst_g1_t Ctypes.ptr option
val of_compressed_bytes_opt : bytes -> Blst_bindings.Types.blst_g1_t Ctypes.ptr option
val of_compressed_bytes_exn : 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 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.