package bls12-381-js

  1. Overview
  2. Docs

Module G2Source

include sig ... end
Sourceexception Not_on_curve of Bytes.t
Sourcetype t = Bls12_381_gen__G2.Make(Fr)(Bls12_381_js_gen.G2.MakeStubs(Stubs)).t
Sourceval size_in_bytes : int
Sourcemodule Scalar : sig ... end
Sourceval empty : unit -> t
Sourceval check_bytes : Bytes.t -> bool
Sourceval of_bytes_opt : Bytes.t -> t option
Sourceval of_bytes_exn : Bytes.t -> t
Sourceval of_compressed_bytes_opt : Bytes.t -> t option
Sourceval of_compressed_bytes_exn : Bytes.t -> t
Sourceval to_bytes : t -> Bytes.t
Sourceval to_compressed_bytes : t -> Bytes.t
Sourceval zero : t
Sourceval one : t
Sourceval is_zero : t -> bool
Sourceval random : ?state:Random.State.t -> unit -> t
Sourceval add : t -> t -> t
Sourceval double : t -> t
Sourceval negate : t -> t
Sourceval eq : t -> t -> bool
Sourceval mul : t -> Scalar.t -> t
Sourceval fft : domain:Scalar.t array -> points:t list -> t list
Sourceval ifft : domain:Scalar.t array -> points:t list -> t list
Sourceval of_z_opt : x:(Z.t * Z.t) -> y:(Z.t * Z.t) -> t option
OCaml

Innovation. Community. Security.