Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arkworks-rs/crypto-primitives
Interfaces and implementations of cryptographic primitives, along with R1CS constraints for them
https://github.com/arkworks-rs/crypto-primitives
cryptography hash-functions r1cs rust signatures snark
Last synced: about 1 month ago
JSON representation
Interfaces and implementations of cryptographic primitives, along with R1CS constraints for them
- Host: GitHub
- URL: https://github.com/arkworks-rs/crypto-primitives
- Owner: arkworks-rs
- License: apache-2.0
- Created: 2020-10-16T17:56:43.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-06-28T13:06:20.000Z (6 months ago)
- Last Synced: 2024-07-01T17:58:25.485Z (5 months ago)
- Topics: cryptography, hash-functions, r1cs, rust, signatures, snark
- Language: Rust
- Homepage: https://www.arkworks.rs
- Size: 367 KB
- Stars: 153
- Watchers: 13
- Forks: 69
- Open Issues: 43
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-APACHE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- awesome-ccamel - arkworks-rs/crypto-primitives - Interfaces and implementations of cryptographic primitives, along with R1CS constraints for them (Rust)
README
ark-crypto-primitives
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 cryptographic primitives such as collision-resistant hash functions, hiding commitments, pseudo-random functions, signatures, and, optionally, R1CS constraints for these.
This library is released under the MIT License and the Apache v2 License (see [License](#license)).
**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.
## Build guide
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:
```bash
rustup install stable
```After that, use `cargo`, the standard Rust build tool, to build the library:
```bash
git clone https://github.com/arkworks-rs/crypto-primitives.git
cargo build --release
```This library comes with unit tests for each of the provided crates. Run the tests with:
```bash
cargo test
```## License
This library is licensed under either of the following licenses, at your discretion.
* Apache License Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or [apache.org license link](http://www.apache.org/licenses/LICENSE-2.0))
* MIT license ([LICENSE-MIT](LICENSE-MIT) or [opensource.org license link](http://opensource.org/licenses/MIT))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.
## Acknowledgements
This work was supported by:
a Google Faculty Award;
the National Science Foundation;
the UC Berkeley Center for Long-Term Cybersecurity;
and donations from the Ethereum Foundation, the Interchain Foundation, and Qtum.An earlier version of this library was developed as part of the paper *"[ZEXE: Enabling Decentralized Private Computation][zexe]"*.
[zexe]: https://ia.cr/2018/962