Update da/test_encoder.py

Co-authored-by: Daniel Sanchez <sanchez.quiros.daniel@gmail.com>
This commit is contained in:
megonen 2025-05-27 09:44:31 +03:00 committed by GitHub
parent 2a37c7f0cc
commit 2eaff7af0e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,8 +41,8 @@ class TestEncoder(TestCase):
h = derive_challenge(encoded_data.row_commitments)
combined_commitment = encoded_data.row_commitments[0]
power = h
for com in encoded_data.row_commitments[1:]:
combined_commitment = bls.add(combined_commitment,bls.multiply(com, power))
for commitment in encoded_data.row_commitments[1:]:
combined_commitment = bls.add(combined_commitment,bls.multiply(commitment, power))
power = power * h
for i, (column, proof) in enumerate(zip(encoded_data.extended_matrix.columns, encoded_data.combined_column_proofs)):