10 Commits

Author SHA1 Message Date
Ben Edgington
b21d13684b
Consolidate header files (#14)
* Consolidate header files

User should now need only include c_kzg.h and bls12_381.h.

* Update README
2021-07-09 13:35:19 +01:00
Ben Edgington
f6b1d0ff57 Refactor unit testing 2021-07-03 13:55:54 +01:00
Ben Edgington
244bfe8740 Add ASSERT macro 2021-06-24 16:22:37 +01:00
Ben Edgington
e7b4e9f06d Rename shift_poly to scale_poly 2021-03-08 12:06:25 +00:00
Ben Edgington
42013d27a0 Fix missing initialisation 2021-03-06 13:16:32 +00:00
Ben Edgington
7d3d422005 Improve comments 2021-03-04 15:10:28 +00:00
Ben Edgington
9d1b622f21 Make zero poly work for large numbers of missing indices
Previously, like the Go code, calculating the zero polynomial would fail
for very lare numbers of missing indices. For example, 253 missing with
a domain size of 256 - this is where the number of partials flips from 4
to 5 and more working space is needed.

With this commit, the zero polynomial can be calculated right up to all
but one of the indices missing. The case with all indices missing
doesn't work as the return data is too large, but the solution is known
to be `x^width - 1` in case we need to know.
2021-03-03 21:51:32 +00:00
Ben Edgington
e2cbccdc9d Start improving the docs 2021-03-01 11:39:18 +00:00
Ben Edgington
79a9419791 Reduce memory usage 2021-02-28 17:00:05 +00:00
Ben Edgington
2c22bb9dae Implement recovery from samples 2021-02-27 15:19:46 +00:00