Forgot factor of 2 for roots_of_unity_extended

This commit is contained in:
Dankrad Feist 2024-01-12 12:39:08 +00:00
parent 9a851d93c4
commit 4cc1e14a17
No known key found for this signature in database
GPG Key ID: 6815E6A20BEBBABA
1 changed files with 1 additions and 1 deletions

View File

@ -492,7 +492,7 @@ def recover_polynomial(cell_ids: Sequence[CellID], cells: Sequence[Cell]) -> Pol
extended_evaluation_times_zero = [BLSFieldElement(int(a) * int(b) % BLS_MODULUS)
for a, b in zip(zero_poly_eval, extended_evaluation)]
roots_of_unity_extended = compute_roots_of_unity(FIELD_ELEMENTS_PER_BLOB)
roots_of_unity_extended = compute_roots_of_unity(2 * FIELD_ELEMENTS_PER_BLOB)
extended_evaluations_fft = fft_field(extended_evaluation_times_zero, roots_of_unity_extended, inv=True)