package bls12-381-legacy

  1. Overview
  2. Docs
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 to_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 of_z_opt : x:Z.t -> y:Z.t -> t option
OCaml

Innovation. Community. Security.