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

#278 in Parser implementations

Download history 8024/week @ 2024-06-17 7416/week @ 2024-06-24 5680/week @ 2024-07-01 5338/week @ 2024-07-08 6025/week @ 2024-07-15 6960/week @ 2024-07-22 5319/week @ 2024-07-29 6090/week @ 2024-08-05 4997/week @ 2024-08-12 6544/week @ 2024-08-19 6576/week @ 2024-08-26 5158/week @ 2024-09-02 5253/week @ 2024-09-09 3855/week @ 2024-09-16 6023/week @ 2024-09-23 5791/week @ 2024-09-30

21,287 downloads per month
Used in 32 crates (14 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