Skip to content

Commit

Permalink
verify_data_column_sidecar_kzg_proofs(): Use sidecar.kzg_commitments
Browse files Browse the repository at this point in the history
  • Loading branch information
asn-d6 committed Jul 9, 2024
1 parent 3920ae5 commit e39bd1a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions specs/_features/eip7594/p2p-interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e39bd1a

Please sign in to comment.