Skip to content

Commit 5699eed

Browse files
committed
pad column_indices
1 parent e0ee280 commit 5699eed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

specs/_features/eip7594/p2p-interface.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,13 @@ def verify_data_column_sidecar_kzg_proofs(sidecar: DataColumnSidecar) -> bool:
7373
assert len(sidecar.column) == len(sidecar.kzg_commitments) == len(sidecar.kzg_proofs)
7474
row_ids = [RowIndex(i) for i in range(len(sidecar.column))]
7575

76+
column_indices = [sidecar.index] * len(sidecar.column)
77+
7678
# KZG batch verifies that the cells match the corresponding commitments and proofs
7779
return verify_cell_kzg_proof_batch(
7880
row_commitments_bytes=sidecar.kzg_commitments,
7981
row_indices=row_ids, # all rows
80-
column_indices=[sidecar.index],
82+
column_indices=column_indices,
8183
cells=sidecar.column,
8284
proofs_bytes=sidecar.kzg_proofs,
8385
)

0 commit comments

Comments
 (0)