From 4106b7679948c1f1dee343902d4720505b7410fc Mon Sep 17 00:00:00 2001 From: Benedikt Wagner <113296072+b-wagn@users.noreply.github.com> Date: Tue, 8 Oct 2024 13:52:30 +0200 Subject: [PATCH] Fix inconsistent parameter doc in blob.c (#514) --- src/eip4844/blob.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/eip4844/blob.c b/src/eip4844/blob.c index 261bd1c6..aafba3b4 100644 --- a/src/eip4844/blob.c +++ b/src/eip4844/blob.c @@ -24,7 +24,9 @@ * * @param[out] p The output polynomial (array of field elements) * @param[in] blob The blob (an array of bytes) - * @param[in] n The number of field elements in the polynomial/blob + * + * @remark The polynomial is of degree (at most) FIELD_ELEMENTS_PER_BLOB - 1. That is, + * the function will set the first FIELD_ELEMENTS_PER_BLOB elements of p. */ C_KZG_RET blob_to_polynomial(fr_t *p, const Blob *blob) { C_KZG_RET ret;