@@ -243,7 +243,7 @@ def divide_polynomialcoeff(a: PolynomialCoeff, b: PolynomialCoeff) -> Polynomial
243243 Long polynomial division for two coefficient form polynomials ``a`` and ``b``
244244 """
245245 a = a.copy() # Make a copy since `a` is passed by reference
246- o = []
246+ o: List[BLSFieldElement] = []
247247 apos = len (a) - 1
248248 bpos = len (b) - 1
249249 diff = apos - bpos
@@ -441,7 +441,7 @@ def compute_cells_and_kzg_proofs(blob: Blob) -> Tuple[
441441 proofs = []
442442
443443 for i in range (CELLS_PER_EXT_BLOB ):
444- coset = coset_for_cell(i )
444+ coset = coset_for_cell(CellID(i) )
445445 proof, ys = compute_kzg_proof_multi_impl(polynomial_coeff, coset)
446446 cells.append(coset_evals_to_cell(ys))
447447 proofs.append(proof)
@@ -470,7 +470,7 @@ def compute_cells(blob: Blob) -> Vector[Cell, CELLS_PER_EXT_BLOB]:
470470 for cell_id in range (CELLS_PER_EXT_BLOB ):
471471 start = cell_id * FIELD_ELEMENTS_PER_CELL
472472 end = (cell_id + 1 ) * FIELD_ELEMENTS_PER_CELL
473- cells.append(coset_evals_to_cell(extended_data_rbo[start:end]))
473+ cells.append(coset_evals_to_cell(CosetEvals( extended_data_rbo[start:end]) ))
474474 return cells
475475```
476476
@@ -572,7 +572,7 @@ def construct_vanishing_polynomial(missing_cell_ids: Sequence[CellID]) -> Tuple[
572572 ])
573573
574574 # Extend vanishing polynomial to full domain using the closed form of the vanishing polynomial over a coset
575- zero_poly_coeff = [0 ] * FIELD_ELEMENTS_PER_EXT_BLOB
575+ zero_poly_coeff = [BLSFieldElement( 0 ) ] * FIELD_ELEMENTS_PER_EXT_BLOB
576576 for i, coeff in enumerate (short_zero_poly):
577577 zero_poly_coeff[i * FIELD_ELEMENTS_PER_CELL ] = coeff
578578
@@ -690,7 +690,7 @@ def recover_all_cells(cell_ids: Sequence[CellID], cells: Sequence[Cell]) -> Sequ
690690 # Convert cells to coset evals
691691 cosets_evals = [cell_to_coset_evals(cell) for cell in cells]
692692
693- missing_cell_ids = [cell_id for cell_id in range (CELLS_PER_EXT_BLOB ) if cell_id not in cell_ids]
693+ missing_cell_ids = [CellID( cell_id) for cell_id in range (CELLS_PER_EXT_BLOB ) if cell_id not in cell_ids]
694694 zero_poly_coeff, zero_poly_eval = construct_vanishing_polynomial(missing_cell_ids)
695695
696696 eval_shifted_extended_evaluation, eval_shifted_zero_poly, shift_inv = recover_shifted_data(
0 commit comments