mirror of
https://github.com/status-im/c-kzg-4844.git
synced 2025-01-26 09:59:03 +00:00
6d21a0ea98
* Replace g1 points with g1 lagrange points * Swap out validate_kzg_g1 with blst funcs * Update minimal preset too * Fix java & nodejs bindings * Put variables in smaller scope * Update some comments * Remove FFTSettings (#2) * Fix issue when expanding roots of unity * Fix formatting * Revert back to using intermediate array * Add missing c_kzg_free * Fix some nits * Replace free_kzg_settings with free_trusted_setup * Add parens to NUM_ELEMENTS Co-authored-by: George Kadianakis <desnacked@riseup.net> * Move memcpy to the end * Revert "Move memcpy to the end" This reverts commit 5331c7feadc92e4b5dd5d4e7512e4be563d7f386. * Add comment about free_trusted_setup * Move check before alloc * Add remark * Delete unnecessary blank line * Fix asn's nits * Update comment for roots_of_unity in header Co-authored-by: Gottfried Herold <GottfriedHerold@users.noreply.github.com> * Fix formatting * Update comment about max_scale Co-authored-by: Gottfried Herold <GottfriedHerold@users.noreply.github.com> --------- Co-authored-by: Suphanat Chunhapanya <haxx.pop@gmail.com> Co-authored-by: George Kadianakis <desnacked@riseup.net> Co-authored-by: Gottfried Herold <GottfriedHerold@users.noreply.github.com>
Rust bindings
Generates the rust bindings for the c-kzg library.
Build
cargo build --release
Build with --features="minimal-spec"
to set the FIELD_ELEMENTS_PER_BLOB
compile time parameter to the pre-determined minimal spec value.
Test
cargo test --release
Benchmark
cargo bench