Update da/test_encoder.py

Co-authored-by: Daniel Sanchez <sanchez.quiros.daniel@gmail.com>
This commit is contained in:
megonen 2025-05-22 11:07:46 +03:00 committed by GitHub
parent 82e5b4da7c
commit cce427f161
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,7 +38,7 @@ class TestEncoder(TestCase):
# verify rows
h = DAVerifier._derive_challenge(encoded_data.row_commitments)
com_C = encoded_data.row_commitments[0]
combined_commitment = encoded_data.row_commitments[0]
power = h
for com in encoded_data.row_commitments[1:]:
com_C = com_C + com * int(power)