You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
2.7 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. <h1 align="center">ark-r1cs-std</h1>
  2. <p align="center">
  3. <img src="https://github.com/arkworks-rs/r1cs-std/workflows/CI/badge.svg?branch=master">
  4. <a href="https://github.com/arkworks-rs/r1cs-std/blob/master/LICENSE-APACHE"><img src="https://img.shields.io/badge/license-APACHE-blue.svg"></a>
  5. <a href="https://github.com/arkworks-rs/r1cs-std/blob/master/LICENSE-MIT"><img src="https://img.shields.io/badge/license-MIT-blue.svg"></a>
  6. <a href="https://deps.rs/repo/github/arkworks-rs/r1cs-std"><img src="https://deps.rs/repo/github/arkworks-rs/r1cs-std/status.svg"></a>
  7. </p>
  8. The arkworks ecosystem consist of Rust libraries for designing and working with __zero knowledge succinct non-interactive arguments (zkSNARKs)__. This repository contains efficient implementations of constraint "gadgets" that enable checking common computations inside SNARKs, such as bit operations, finite field arithmetic, elliptic curve arithmetic, and pairings.
  9. This library is released under the MIT License and the Apache v2 License (see [License](#license)).
  10. **WARNING:** This is an academic proof-of-concept prototype, and in particular has not received careful code review. This implementation is NOT ready for production use.
  11. ## Build guide
  12. The library compiles on the `stable` toolchain of the Rust compiler. To install the latest version of Rust, first install `rustup` by following the instructions [here](https://rustup.rs/), or via your platform's package manager. Once `rustup` is installed, install the Rust toolchain by invoking:
  13. ```bash
  14. rustup install stable
  15. ```
  16. After that, use `cargo`, the standard Rust build tool, to build the library:
  17. ```bash
  18. git clone https://github.com/arkworks-rs/r1cs-std.git
  19. cargo build --release
  20. ```
  21. This library comes with unit tests for each of the provided crates. Run the tests with:
  22. ```bash
  23. cargo test
  24. ```
  25. ## License
  26. This library is licensed under either of the following licenses, at your discretion.
  27. * Apache License Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
  28. * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
  29. Unless you explicitly state otherwise, any contribution submitted for inclusion in this library by you shall be dual licensed as above (as defined in the Apache v2 License), without any additional terms or conditions.
  30. ## Acknowledgements
  31. This work was supported by:
  32. a Google Faculty Award;
  33. the National Science Foundation;
  34. the UC Berkeley Center for Long-Term Cybersecurity;
  35. and donations from the Ethereum Foundation, the Interchain Foundation, and Qtum.
  36. An earlier version of this library was developed as part of the paper *"[ZEXE: Enabling Decentralized Private Computation][zexe]"*.
  37. [zexe]: https://ia.cr/2018/962