package tezos-bls12-381-polynomial

  1. Overview
  2. Docs
type t = Bigstringaf.t
type elt = Bls12_381.Fr.t
val size : int
val allocate_elt : unit -> Bls12_381.Fr.t
val get : elt -> t -> int -> unit

get res p i writes i-th element of a given array p in res

  • requires: 0 <= i < size p
  • ensures: res = p[i]
val set : t -> elt -> int -> unit

set p fr i writes fr in the i-th element of p

  • requires: 0 <= i < size p
  • ensures: fr = p[i]
OCaml

Innovation. Community. Security.