22 releases (11 breaking)

0.14.0 Mar 20, 2023
0.13.1 Jul 5, 2022
0.13.0 May 7, 2022
0.11.1 Sep 13, 2021
0.0.1 Dec 24, 2015

#3 in #groth16

Download history 6039/week @ 2024-07-26 5342/week @ 2024-08-02 5852/week @ 2024-08-09 6423/week @ 2024-08-16 6287/week @ 2024-08-23 5059/week @ 2024-08-30 5452/week @ 2024-09-06 4310/week @ 2024-09-13 5335/week @ 2024-09-20 5993/week @ 2024-09-27 5079/week @ 2024-10-04 5486/week @ 2024-10-11 5212/week @ 2024-10-18 5795/week @ 2024-10-25 5334/week @ 2024-11-01 5754/week @ 2024-11-08

23,260 downloads per month
Used in 30 crates (12 directly)

MIT/Apache

315KB
7.5K SLoC

bellman Crates.io

bellman is a crate for building zk-SNARK circuits. It provides circuit traits and primitive structures, as well as basic gadget implementations such as booleans and number abstractions.

bellman uses the ff and group crates to build circuits generically over a scalar field type, which is used as the "word" of a circuit. Arithmetic operations modulo the scalar field's prime are efficient, while other operations (such as boolean logic) are implemented using these words.

Roadmap

Currently bellman bundles an implementation of the Groth16 proving system. This will be moved into a separate crate in the future, and bellman will contain any utilities that make implementing proving systems easier.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~1.4–2MB
~41K SLoC