Polynomials ECC
This library allows to operate on polynomials over the BLS12-381. In particular, it allows to perform evaluations and interpolations using FFTs. It also offers tools such as efficient multi scalar multiplication, using the blst library as a backend.
DISCLAIMER: the code in this repository has NOT went through an exhaustive security review. Use at your own risk.
Example
use ;
use Scalar;
use OsRng;
use Field;
// Define our domain of size n = 2^14
let domain = new;
// Create an array of random coefficients
let mut coeffs = vec!;
for _ in 0..10000
// Define our polynomial
let polynomial = new;
// Evaluate using the FFT
let evaluations = polynomial.evaluate;
// Interpolate using the IFFT
let polynomial_p = evaluations.interpolate;