From e39bd1afcdc264c7278c474e9ac9e6f29cbccbb9 Mon Sep 17 00:00:00 2001 From: George Kadianakis Date: Tue, 9 Jul 2024 14:21:17 +0300 Subject: [PATCH] verify_data_column_sidecar_kzg_proofs(): Use sidecar.kzg_commitments --- specs/_features/eip7594/p2p-interface.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specs/_features/eip7594/p2p-interface.md b/specs/_features/eip7594/p2p-interface.md index 4ad7f17ae9..0c9a7cd178 100644 --- a/specs/_features/eip7594/p2p-interface.md +++ b/specs/_features/eip7594/p2p-interface.md @@ -73,12 +73,11 @@ def verify_data_column_sidecar_kzg_proofs(sidecar: DataColumnSidecar) -> bool: assert sidecar.index < NUMBER_OF_COLUMNS assert len(sidecar.column) == len(sidecar.kzg_commitments) == len(sidecar.kzg_proofs) - commitments = [sidecar.kzg_commitments[i] for i in range(len(sidecar.column))] column_indices = [sidecar.index] * len(sidecar.column) # KZG batch verifies that the cells match the corresponding commitments and proofs return verify_cell_kzg_proof_batch( - commitments_bytes=commitments, + commitments_bytes=sidecar.kzg_commitments, column_indices=column_indices, cells=sidecar.column, proofs_bytes=sidecar.kzg_proofs,