17 unstable releases (8 breaking)

0.11.1 Sep 13, 2021
0.10.0 Jun 4, 2021
0.9.0 Jan 26, 2021
0.8.1 Nov 10, 2020
0.0.1 Dec 24, 2015

#169 in Magic Beans

Download history 3217/week @ 2021-06-27 2331/week @ 2021-07-04 1952/week @ 2021-07-11 1608/week @ 2021-07-18 2374/week @ 2021-07-25 2318/week @ 2021-08-01 2730/week @ 2021-08-08 1934/week @ 2021-08-15 2414/week @ 2021-08-22 3368/week @ 2021-08-29 1783/week @ 2021-09-05 3193/week @ 2021-09-12 4122/week @ 2021-09-19 3843/week @ 2021-09-26 3479/week @ 2021-10-03 2333/week @ 2021-10-10

9,955 downloads per month
Used in 12 crates (8 directly)

MIT/Apache

305KB
7K 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

~2MB
~34K SLoC