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

Document `compute_commitment_to_aggregated_interpolation_poly()` #500

Closed asn-d6 closed 3 weeks ago

asn-d6 commented 3 weeks ago

I feel like compute_commitment_to_aggregated_interpolation_poly() is a bit complicated. I'm not sure if it can be simplified in terms of code, but IMO the documentation can be improved, so that the reader can more easily understand what's happening.

This opinionated PR adds some documentation and renames some variables. This PR should not change the logic at all.

asn-d6 commented 3 weeks ago

Thanks for review!