You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Java bindings do not check that there are count commitments present
The nodejs bindings assume that there are as many commitments as blobs and then freely copy memory into the short commitments[blob_index] array
I suggest we document this requirement in the core c-kzg library so that bindings know what to expect. We also need to fix the above two cases. We might also need some unittests that check this behavior.
The text was updated successfully, but these errors were encountered:
The c-kzg public method
verify_aggregate_kzg_proof()
expects that itsblobs
andexpected_kzg_commitments
arguments have length of sizen
.This is an undocumented requirement but still real because of the array accessing loop in
c-kzg-4844/src/c_kzg_4844.c
Lines 1290 to 1294 in c72ea8e
However, this is not respected by all bindings:
count
commitments presentcommitments[blob_index]
arrayI suggest we document this requirement in the core c-kzg library so that bindings know what to expect. We also need to fix the above two cases. We might also need some unittests that check this behavior.
The text was updated successfully, but these errors were encountered: