Module scuttlebutt::field::fft
source · Expand description
Various number theoretic utility functions used in the library.
Note: This library was adapted from https://github.com/snipsco/rust-threshold-secret-sharing
Traits§
- This trait indicates that a finite field is suitable for use in radix-
N
FFT. This means that it must have a power-of-N
root of unity for any desired FFT size, i.e., a field elementr_p
, such thatr_p^(N^p) = 1
, for a size-3^p
FFT. ThePHI_EXP
constant is the exponent of the largest FFT size supported, androot
should return theN^p
th root of unity.
Functions§
- Compute the 2-radix FFT of
a_coef
in the Zp field defined byprime
. - Compute the in-place 2-radix FFT of
a_coef
in the Zp field defined byprime
. - Inverse FFT for
fft2
. - Inverse FFT for
fft2_in_place
. - Compute the 3-radix FFT of
a_coef
in the Zp field defined byprime
. - Compute the 3-radix FFT of
a_coef
in the Zp field defined byprime
. - Inverse FFT for
fft3
. - Inverse FFT for
fft3
. - Performs a Lagrange interpolation at the origin for a polynomial defined by
points
andvalues
.