Skip to content

Commit

Permalink
Update src/eip7594/eip7594.c
Browse files Browse the repository at this point in the history
Co-authored-by: Benedikt Wagner <113296072+b-wagn@users.noreply.github.com>
  • Loading branch information
asn-d6 and b-wagn authored Aug 23, 2024
1 parent 22a08fb commit 940c0a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eip7594/eip7594.c
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ static C_KZG_RET computed_weighted_sum_of_proofs(
for (size_t i = 0; i < num_cells; i++) {
uint64_t pos = reverse_bits_limited(CELLS_PER_EXT_BLOB, cell_indices[i]);
fr_t coset_factor = s->roots_of_unity[pos];
// Compute h_k^n
// Compute h_k^n, with h_k and n as in the spec.
fr_pow(&coset_factor_pow, &coset_factor, FIELD_ELEMENTS_PER_CELL);
// Compute the scalar array for the MSM
blst_fr_mul(&weighted_powers_of_r[i], &r_powers[i], &coset_factor_pow);
Expand Down

0 comments on commit 940c0a7

Please sign in to comment.