MCPcopy Index your code
hub / github.com/arkworks-rs/groth16

github.com/arkworks-rs/groth16 @v0.6.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.6.0 ↗ · + Follow
69 symbols 103 edges 11 files 14 documented · 20% 1 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

ark-groth16

<img src="https://github.com/arkworks-rs/groth16/workflows/CI/badge.svg?branch=master">
<a href="https://github.com/arkworks-rs/groth16/blob/master/LICENSE-APACHE"><img src="https://img.shields.io/badge/license-APACHE-blue.svg"></a>
<a href="https://github.com/arkworks-rs/groth16/blob/master/LICENSE-MIT"><img src="https://img.shields.io/badge/license-MIT-blue.svg"></a>
<a href="https://deps.rs/repo/github/arkworks-rs/groth16"><img src="https://deps.rs/repo/github/arkworks-rs/groth16/status.svg"></a>

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.

  • Apache License Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
  • MIT license (LICENSE-MIT or 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".

Extension points exported contracts — how you extend this code

R1CSToQAP (Interface)
Computes instance and witness reductions from R1CS to Quadratic Arithmetic Programs (QAPs). [1 implementers]
src/r1cs_to_qap.rs

Core symbols most depended-on inside this repo

clone
called by 29
benches/bench.rs
evaluate_constraint
called by 4
src/r1cs_to_qap.rs
prepare_verifying_key
called by 2
src/verifier.rs
serial_evaluate_constraint
called by 2
src/r1cs_to_qap.rs
create_evaluate_constraint_test_data
called by 1
benches/bench.rs
bench_evaluate_constraint
called by 1
benches/bench.rs
bench_prove
called by 1
benches/bench.rs
bench_verify
called by 1
benches/bench.rs

Shape

Method 39
Function 15
Class 14
Interface 1

Languages

Rust100%

Modules by API surface

src/constraints.rs17 symbols
src/r1cs_to_qap.rs8 symbols
src/data_structures.rs8 symbols
benches/bench.rs8 symbols
src/prover.rs7 symbols
src/test.rs6 symbols
src/lib.rs5 symbols
tests/mimc.rs4 symbols
src/verifier.rs4 symbols
src/generator.rs2 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add groth16 \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page