Skip to content

Commit

Permalink
Delete old assert & fix vanishing_polynomial_for_missing_cells
Browse files Browse the repository at this point in the history
  • Loading branch information
jtraglia committed Aug 6, 2024
1 parent a9b250e commit 65440dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/eip7594/recovery.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ static C_KZG_RET vanishing_polynomial_for_missing_cells(
);
if (ret != C_KZG_OK) goto out;

/* Zero out all the coefficients */
for (size_t i = 0; i < FIELD_ELEMENTS_PER_EXT_BLOB; i++) {
vanishing_poly[i] = FR_ZERO;
}

/*
* For each root \omega^i in `short_vanishing_poly`, we compute a polynomial that has roots at
*
Expand Down
1 change: 0 additions & 1 deletion src/test/tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ static void test_c_kzg_malloc__succeeds_size_greater_than_zero(void) {
bool is_null = ptr == NULL;
c_kzg_free(ptr);
ASSERT_EQUALS(ret, C_KZG_OK);
ASSERT("valid pointer", ptr != NULL);
ASSERT_EQUALS(is_null, false);
}

Expand Down

0 comments on commit 65440dd

Please sign in to comment.