Home / Projects / Finite Field FFT / NTT

Finite Field FFT / NTT

research Active Own work C/C++NTTCryptography

Fast polynomial evaluation over finite fields for zero-knowledge proof systems.

The input row shows the coefficients; each stage halves the butterfly span; the dashed lines at the end show the bit-reversal reordering into natural output order. Keyboard: Space = play/pause, S = step, R = reset.

 

Evaluating a polynomial of degree n−1 at n points costs O(n²) multiplications when done naively. The number-theoretic transform — the finite-field analogue of the FFT — reduces this to O(n log n) using exact modular arithmetic instead of floating point, with no rounding error anywhere. Fast polynomial arithmetic of this kind is the inner loop of zero-knowledge commitment schemes.

This is my ongoing undergraduate research with Prof. Dimitris Papadopoulos at HKUST. The repository contains the C implementation and the benchmark harness; the interactive butterfly demo above is a plain-JavaScript rendering of the same algorithm, self-verified against an O(n²) reference on every run.

Current status: the mixed radix pipeline is complete and verified. I really love this project and plan to spend more time later.

← All projects