tezos-bls12-381-polynomial
Bls12_381_polynomial.Domain
module Fr = Bls12_381.Fr
module Stubs : sig ... end
module Domain_impl : sig ... end
module type Domain_sig = sig ... end
module type Domain_unsafe_sig = sig ... end
module Domain_unsafe : Domain_unsafe_sig with type scalar = Bls12_381.Fr.t
include Domain_sig with type t = Domain_unsafe.t and type scalar = Domain_unsafe.scalar
type scalar = Domain_unsafe.scalar
type t = Domain_unsafe.t
val length : t -> int
length p returns the length of a given array p
length p
p
val get : t -> int -> scalar
get p i returns the i-th element of a given array p
get p i
i
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
build log
[one; g; ..; g^{n-1}]
g
n
n = 2^log
val subgroup : log:int -> t -> t
subgroup log d returns a subgroup of d of order 2^log
subgroup log d
d
2^log
val inverse : t -> scalar array
inverse d returns for a domain wⁱᵢ its inverse domain w⁻ⁱᵢ
inverse d
wⁱᵢ
w⁻ⁱᵢ