From 9ec5dde8ac1982f241b335540d0fa1b692e745a5 Mon Sep 17 00:00:00 2001 From: Dankrad Feist Date: Sat, 23 Dec 2023 15:21:19 +0000 Subject: [PATCH] Remove polynomial_coeff_to_eval --- specs/deneb/polynomial-commitments-sampling.md | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/specs/deneb/polynomial-commitments-sampling.md b/specs/deneb/polynomial-commitments-sampling.md index fcc580014..cf70cc7b0 100644 --- a/specs/deneb/polynomial-commitments-sampling.md +++ b/specs/deneb/polynomial-commitments-sampling.md @@ -152,22 +152,6 @@ def polynomial_eval_to_coeff(polynomial: Polynomial) -> PolynomialCoeff: return polynomial_coeff ``` -#### `polynomial_coeff_to_eval` - -```python -def polynomial_coeff_to_eval(polynomial_coeff: PolynomialCoeff) -> Polynomial: - """ - Evaluates a polynomial (given in coefficient form) to a polynomial in evaluation form. - """ - - if len(polynomial_coeff) > FIELD_ELEMENTS_PER_BLOB: - assert all(c == 0 for c in polynomial_coeff[FIELD_ELEMENTS_PER_BLOB:]) - - polynomial = bit_reversal_permutation(fft_field(list(polynomial_coeff), list(ROOTS_OF_UNITY), inv=False)) - - return polynomial -``` - #### `add_polynomialcoeff` ```python