package bls12-381-legacy

  1. Overview
  2. Docs
exception Not_on_curve of Bytes.t
type t
val size_in_bytes : int
module Scalar : sig ... end
val empty : unit -> t
val check_bytes : Bytes.t -> bool
val of_bytes_opt : Bytes.t -> t option
val of_bytes_exn : Bytes.t -> t
val to_bytes : t -> Bytes.t
val zero : t
val one : t
val is_zero : t -> bool
val random : ?state: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.