package bls12-381-js

  1. Overview
  2. Docs
JavaScript version of BLS12-381 primitives implementing the virtual package bls12-381

Install

Dune Dependency

Authors

Maintainers

Sources

ocaml-bls12-381-2f6c97bbd86ce05428e9f06ffdf3239982bd9083.tar.bz2
md5=3b88994951c586751fb615af236d2285
sha512=90f97d5229a2b000452b9903fc30d938538698aebdf542b799ada56d8f635c38effce93365c1994a9667f88769f696335a0d627baa68fef6cd41573f0aa7299c

doc/bls12-381-js/Fr/index.html

Module FrSource

Sourcemodule Fr : sig ... end
include module type of struct include Fr end
Sourceexception Not_in_field of Bytes.t
Sourcetype t = Bls12_381_gen__Fr.MakeFr(Bls12_381_js_gen.Fr.MakeStubs(Stubs)).t
Sourceval order : Z.t
Sourceval size_in_bytes : int
Sourceval zero : t
Sourceval one : t
Sourceval is_zero : t -> bool
Sourceval is_one : t -> bool
Sourceval random : ?state:Random.State.t -> unit -> t
Sourceval non_null_random : ?state:Random.State.t -> unit -> t
Sourceval add : t -> t -> t
Sourceval (+) : t -> t -> t
Sourceval sub : t -> t -> t
Sourceval mul : t -> t -> t
Sourceval (*) : t -> t -> t
Sourceval eq : t -> t -> bool
Sourceval (=) : t -> t -> bool
Sourceval negate : t -> t
Sourceval (-) : t -> t
Sourceval inverse_exn : t -> t
Sourceval inverse_opt : t -> t option
Sourceval div_exn : t -> t -> t
Sourceval div_opt : t -> t -> t option
Sourceval (/) : t -> t -> t
Sourceval square : t -> t
Sourceval double : t -> t
Sourceval pow : t -> Z.t -> t
Sourceval (**) : t -> Z.t -> t
Sourceval of_bytes_exn : Bytes.t -> t
Sourceval of_bytes_opt : Bytes.t -> t option
Sourceval to_bytes : t -> Bytes.t
Sourceval factor_power_of_two : int * Z.t
Sourceval of_string : string -> t
Sourceval to_string : t -> string
Sourceval of_z : Z.t -> t
Sourceval to_z : t -> Z.t
Sourceval legendre_symbol : t -> Z.t
Sourceval is_quadratic_residue : t -> bool
Sourceval sqrt_opt : t -> t option
Sourceval check_bytes : Bytes.t -> bool
OCaml

Innovation. Community. Security.