package tezos-bls12-381-polynomial

  1. Overview
  2. Docs

Parameters

module S : Stubs_sig

Signature

type t = Bigstringaf.t
type elt = S.elt
val encoding : t Data_encoding.t
val allocate : int -> t

allocate len creates a C array of size len intialized with zeros of blst_fr

val length : t -> int

length c returns the length of a C array c

val get : t -> int -> elt

get c i returns the i-th element of a C array c

val set : t -> elt -> int -> unit
val copy : ?offset:int -> ?len:int -> t -> t

copy c copies len elements from a C array c starting from position offset

val blit : t -> src_off:int -> t -> dst_off:int -> len:int -> unit

blit src src_off dst dst_off len copies len elements from src to dst starting at the respective offsets.

val to_array : ?offset:int -> ?len:int -> t -> elt array

to_array c converts a C array c to an OCaml array

val of_array : elt array -> t

of_array c converts an OCaml array c to a C array

OCaml

Innovation. Community. Security.