package bls12-381-js

  1. Overview
  2. Docs
include sig ... end
exception Not_on_curve of Stdlib.Bytes.t
type t
val size_in_bytes : int
module Scalar : sig ... end
val empty : unit -> t
val check_bytes : Stdlib.Bytes.t -> bool
val of_bytes_opt : Stdlib.Bytes.t -> t option
val of_bytes_exn : Stdlib.Bytes.t -> t
val of_compressed_bytes_opt : Stdlib.Bytes.t -> t option
val of_compressed_bytes_exn : Stdlib.Bytes.t -> t
val to_bytes : t -> Stdlib.Bytes.t
val to_compressed_bytes : t -> Stdlib.Bytes.t
val zero : t
val one : t
val is_zero : t -> bool
val random : ?state:Stdlib.Random.State.t -> unit -> t
val add : t -> t -> t
val double : t -> t
val negate : t -> t
val eq : t -> t -> bool
val mul : t -> Scalar.t -> t
val fft : domain:Scalar.t array -> points:t list -> t list
val ifft : domain:Scalar.t array -> points:t list -> t list
val of_z_opt : x:Z.t -> y:Z.t -> t option
OCaml

Innovation. Community. Security.