c-kzg-4844/bindings/rust
Justin Traglia 1d3558cec2
Update rust bindings (#143)
* Update rust bindings

* Remove old test vectors

* Add #[must_use] in C_KZG_RET to avoid future missing retval checks

* Replace expect with unwrap

* Fix generate_random_commitment()

* Turn some camels to snakes

* Capitalize some consts

* Improve a bench loop

* Kill a useless extern

---------

Co-authored-by: George Kadianakis <desnacked@riseup.net>
2023-02-22 18:33:15 +02:00
..
benches Update rust bindings (#143) 2023-02-22 18:33:15 +02:00
src Update rust bindings (#143) 2023-02-22 18:33:15 +02:00
.gitignore Rust bindings (#4) 2023-01-12 17:50:12 +00:00
Cargo.lock Rust bindings (#4) 2023-01-12 17:50:12 +00:00
Cargo.toml Rust bindings (#4) 2023-01-12 17:50:12 +00:00
README.md Rust bindings (#4) 2023-01-12 17:50:12 +00:00
build.rs Rust bindings (#4) 2023-01-12 17:50:12 +00:00

README.md

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