Skip to content

Commit 1ef75e0

Browse files
committed
Be consistent between ids and indices
1 parent 5699eed commit 1ef75e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

specs/_features/eip7594/p2p-interface.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,15 @@ def verify_data_column_sidecar_kzg_proofs(sidecar: DataColumnSidecar) -> bool:
7171
"""
7272
assert sidecar.index < NUMBER_OF_COLUMNS
7373
assert len(sidecar.column) == len(sidecar.kzg_commitments) == len(sidecar.kzg_proofs)
74-
row_ids = [RowIndex(i) for i in range(len(sidecar.column))]
7574

75+
row_indices = [RowIndex(i) for i in range(len(sidecar.column))]
7676
column_indices = [sidecar.index] * len(sidecar.column)
7777

7878
# KZG batch verifies that the cells match the corresponding commitments and proofs
7979
return verify_cell_kzg_proof_batch(
8080
row_commitments_bytes=sidecar.kzg_commitments,
81-
row_indices=row_ids, # all rows
82-
column_indices=column_indices,
81+
row_indices=row_indices, # all rows
82+
column_indices=column_indices, # specific column
8383
cells=sidecar.column,
8484
proofs_bytes=sidecar.kzg_proofs,
8585
)

0 commit comments

Comments
 (0)