#commitment #polynomial #bindings #eip-4844 #api #generate

sys no-std c-kzg

A minimal implementation of the Polynomial Commitments API for EIP-4844, written in C

6 releases (1 stable)

1.0.0 Mar 13, 2024
0.4.2 Feb 20, 2024
0.4.0 Oct 31, 2023
0.1.1 Sep 28, 2023

#278 in Math

Download history 6401/week @ 2024-01-03 7499/week @ 2024-01-10 8512/week @ 2024-01-17 10399/week @ 2024-01-24 10126/week @ 2024-01-31 10964/week @ 2024-02-07 11790/week @ 2024-02-14 12837/week @ 2024-02-21 10830/week @ 2024-02-28 11809/week @ 2024-03-06 14146/week @ 2024-03-13 12729/week @ 2024-03-20 11456/week @ 2024-03-27 16866/week @ 2024-04-03 15738/week @ 2024-04-10 14534/week @ 2024-04-17

61,163 downloads per month
Used in 18 crates (6 directly)

Apache-2.0

1MB
33K SLoC

Perl 18K SLoC // 0.1% comments C 7.5K SLoC // 0.2% comments Go 4K SLoC // 0.1% comments Rust 1.5K SLoC // 0.1% comments C# 1K SLoC // 0.0% comments SWIG 728 SLoC // 0.0% comments Python 93 SLoC // 0.1% comments Shell 80 SLoC // 0.2% comments Batch 29 SLoC

Rust bindings

Generates the rust bindings for the c-kzg library.

Build

cargo build --release

Test

cargo test --release

Benchmark

cargo bench

Dependencies

~2.6–3.5MB
~127K SLoC