Remove duplicated column proofs from encoding schema

This commit is contained in:
Daniel Sanchez Quiros 2024-02-09 11:38:47 +01:00
parent 74eb5f7deb
commit 53c1d0fb59
2 changed files with 0 additions and 11 deletions

View File

@ -20,7 +20,6 @@ class EncodedData:
row_commitments: List[Commitment]
row_proofs: List[List[Proof]]
column_commitments: List[Commitment]
column_proofs: List[Proof]
aggregated_column_commitment: Commitment
aggregated_column_proofs: List[Proof]
@ -44,13 +43,6 @@ class DAEncoder:
def _compute_column_kzg_commitments(self, chunks_matrix: ChunksMatrix) -> List[Commitment]:
...
def _compute_column_kzg_proofs(
self,
chunks_matrix: ChunksMatrix,
column_commitments: List[Commitment]
) -> List[Proof]:
...
def _compute_aggregated_column_commitments(
self, chunks_matrix: ChunksMatrix, column_commitments: List[Commitment]
) -> Commitment:
@ -69,7 +61,6 @@ class DAEncoder:
extended_matrix = self._rs_encode_rows(chunks_matrix)
row_proofs = self._compute_rows_proofs(extended_matrix, row_commitments)
column_commitments = self._compute_column_kzg_commitments(extended_matrix)
column_proofs = self._compute_column_kzg_proofs(extended_matrix, column_commitments)
aggregated_column_commitment = self._compute_aggregated_column_commitments(extended_matrix, column_commitments)
aggregated_column_proofs = self._compute_aggregated_column_proofs(extended_matrix, aggregated_column_commitment)
result = EncodedData(
@ -78,7 +69,6 @@ class DAEncoder:
row_commitments,
row_proofs,
column_commitments,
column_proofs,
aggregated_column_commitment,
aggregated_column_proofs
)

View File

@ -11,7 +11,6 @@ class TestEncoder(TestCase):
encoded_data = encoder.DAEncoder(encoder_params).encode(data)
self.assertEqual(encoded_data.data, data)
self.assertEqual(len(encoded_data.extended_matrix), encoder_params.column_count)
self.assertEqual(len(encoded_data.column_proofs), encoder_params.column_count)
chunks_size = (len(data) // encoder_params.bytes_per_field_element) // encoder_params.column_count
self.assertEqual(len(encoded_data.row_commitments), chunks_size)
self.assertEqual(len(encoded_data.row_proofs), chunks_size)