5 releases

0.3.5 Jun 17, 2020
0.3.4 Apr 23, 2020
0.3.3 Apr 6, 2020
0.3.1 Jul 13, 2019
0.3.0 Mar 31, 2019

#46 in #zk-snarks

Download history 57/week @ 2023-11-20 65/week @ 2023-11-27 93/week @ 2023-12-04 125/week @ 2023-12-11 60/week @ 2023-12-18 22/week @ 2023-12-25 33/week @ 2024-01-01 52/week @ 2024-01-08 49/week @ 2024-01-15 52/week @ 2024-01-22 18/week @ 2024-01-29 14/week @ 2024-02-05 73/week @ 2024-02-12 91/week @ 2024-02-19 93/week @ 2024-02-26 166/week @ 2024-03-04

424 downloads per month
Used in 2 crates

MIT/Apache

585KB
13K SLoC

bellman "Community edition"

Originally developed for ZCash, with extensions from us to make it a little more pleasant. Uses our "community edition" pairing for Ethereum's BN256 curve. Now published as bellman_ce on crate.io to allow ease of use.

Features

There are two available features to be used in production and are stable and will not be changed in terms of API. Those are Groth16 proof system implementation.

  • multicore feature (enabled by default) is intended to be run on PC and in environments that have support of a full std including threading.
  • singlecore feature is mainly intended for WASM systems, where non-compatible external crates are removed, along with all the multithreading.

Due to request to have a maintainable repo with WASM compatibility those features were implemented during the implementation of GM17 and SONIC proof systems. That's why there are two more features that are incomplete and will have breaking changes in a future. Those are for interested enthusiasts.

  • gm17 - is incomplete and most likely will get attention after putting SONIC to completeness.
  • sonic - 90% complete. Original implementation of helped protocol is integrated with API similar to the Groth16, along with wrapping adapters to use existing circuits without any changes. unhelped version is not yet complete, but all cryptographical primitives are implemented and tested. Right now it's a priority.

Future progress

It's intended to add GM17 proof system and SONIC proof system.

Features

There are two available features to be used in production and are stable and will not be changed in terms of API. Those are Groth16 proof system implementation.

  • multicore feature (enabled by default) is intended to be run on PC and in environments that have support of a full std including threading.
  • singlecore feature is mainly intended for WASM systems, where non-compatible external crates are removed, along with all the multithreading.

Due to request to have a maintainable repo with WASM compatibility those features were implemented during the implementation of GM17 and SONIC proof systems. That's why there are two more features that are incomplete and will have breaking changes in a future. Those are for interested enthusiasts.

  • gm17 - is incomplete and most likely will get attention after putting SONIC to completeness.
  • sonic - 90% complete. Original implementation of helped protocol is integrated with API similar to the Groth16, along with wrapping adapters to use existing circuits without any changes. unhelped version is not yet complete, but all cryptographical primitives are implemented and tested. Right now it's a priority.

Future progress

It's intended to add GM17 proof system and SONIC proof system.

License

Licensed under either of

at your option.

Code Examples:

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

~3–6MB
~123K SLoC