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

no-std ark-gm17

An implementation of the Groth-Maller 2017 zkSNARK proof system

2 unstable releases

0.3.0 Jun 6, 2021
0.2.0 Mar 25, 2021

#2474 in Cryptography

Download history 101/week @ 2024-01-02 170/week @ 2024-01-09 75/week @ 2024-01-16 248/week @ 2024-01-23 95/week @ 2024-01-30 52/week @ 2024-02-06 92/week @ 2024-02-13 74/week @ 2024-02-20 83/week @ 2024-02-27 128/week @ 2024-03-05 128/week @ 2024-03-12 118/week @ 2024-03-19 81/week @ 2024-03-26 160/week @ 2024-04-02 132/week @ 2024-04-09 143/week @ 2024-04-16

531 downloads per month
Used in 2 crates

MIT/Apache

65KB
1.5K SLoC

ark-gm17

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 Groth and Maller.

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/gm17.git
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–15MB
~178K SLoC