ethereum / c-kzg-4844

A minimal implementation of the Polynomial Commitments API for EIP-4844 and EIP-7594, written in C.
Apache License 2.0
112 stars 105 forks source link

fix: poly_lagrange_to_monomial #462

Closed kevaundray closed 1 month ago

kevaundray commented 1 month ago

This function had the parameters in the wrong order. It did not break because it was internally computing the monomial form but naming it the lagrange form. I've also modified the description, the previous wording made it seem like you needed to do bit reversal to convert a polynomial from lagrange to monomial form.