#zk-snarks #zero-knowledge-proofs #zero-knowledge #snark #groth-maller

no-std ark-groth16

An implementation of the Groth 2016 zkSNARK proof system

6 releases (3 breaking)

0.5.0 Oct 28, 2024
0.5.0-alpha.1 Jul 17, 2024
0.5.0-alpha Jun 21, 2024
0.4.0 Feb 17, 2023
0.2.0 Mar 25, 2021

#597 in Cryptography

Download history 21964/week @ 2024-08-17 22474/week @ 2024-08-24 23399/week @ 2024-08-31 26574/week @ 2024-09-07 24381/week @ 2024-09-14 25313/week @ 2024-09-21 29106/week @ 2024-09-28 29373/week @ 2024-10-05 25046/week @ 2024-10-12 27486/week @ 2024-10-19 25902/week @ 2024-10-26 20651/week @ 2024-11-02 20480/week @ 2024-11-09 23043/week @ 2024-11-16 20691/week @ 2024-11-23 23559/week @ 2024-11-30

90,884 downloads per month
Used in 58 crates (26 directly)

MIT/Apache

70KB
1.5K SLoC

ark-groth16

The arkworks ecosystem consist of Rust libraries for designing and working with zero knowledge succinct non-interactive arguments (zkSNARKs). This repository contains an efficient implementation of the zkSNARK of [Groth16].

This library is released under the MIT License and the Apache v2 License (see 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, or via your platform's package manager. Once rustup is installed, install the Rust toolchain by invoking:

rustup install stable

After that, use cargo, the standard Rust build tool, to build the library:

git clone https://github.com/arkworks-rs/groth16.git
cd groth16
cargo build --release

This library comes with unit tests for each of the provided crates. Run the tests with:

cargo test

License

This library is licensed under either of the following licenses, at your discretion.

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".

Dependencies

~5–17MB
~170K SLoC