package tezos-bls12-381-polynomial

  1. Overview
  2. Docs
include Domain_sig with type scalar = Bls12_381.Fr.t
type scalar = Bls12_381.Fr.t
type t
val length : t -> int

length p returns the length of a given array p

val get : t -> int -> scalar

get p i returns the i-th element of a given array p

val build : log:int -> t

build log computes [one; g; ..; g^{n-1}] where g is a primitive n-th root of unity and n = 2^log

val subgroup : log:int -> t -> t

subgroup log d returns a subgroup of d of order 2^log

val inverse : t -> scalar array

inverse d returns for a domain w^i_i its inverse domain w^{-i

}

_i

val to_carray : t -> Carray.t

to_carray d converts d from type t to type Carray.t

Note: to_carray d doesn't create a copy of d

val of_carray : Carray.t -> t

of_carray d converts d from type Carray.t to type t

Note: of_carray d doesn't create a copy of d

val to_array : t -> scalar array

to_array d converts a C array d to an OCaml array

val of_array : scalar array -> t

of_array d converts an OCaml array d to a C array

OCaml

Innovation. Community. Security.