Crates.io | legogroth16 |
lib.rs | legogroth16 |
version | 0.15.0 |
source | src |
created_at | 2022-05-02 09:57:20.748037 |
updated_at | 2024-07-18 17:03:31.584046 |
description | An implementation of the LegoGroth16, the Legosnark variant of Groth16 zkSNARK proof system |
homepage | |
repository | https://github.com/docknetwork/crypto |
max_upload_size | |
id | 578980 |
size | 397,900 |
This repository contains an implementation of the LegoGroth16, the LegoSNARK variant of Groth16 zkSNARK proof system.
This project started as fork of this but is updated to
n
, of the witnesses to commit during CRS generation.
By convention, it commits to the first n
variables allocated for witnesses in the circuit and the proof contains that commitmentThe zkSNARK for Linear Subspaces from appendix D of LegoSNARK paper is here.
This library is released under the MIT License and the Apache v2 License (see License).
Build the library:
cargo build --release
This library comes with unit tests for each of the provided crates. Run the tests with:
cargo test
To build without std
but with Circom support and proof aggregation, run
cargo build --no-default-features --features=circom,aggregation,wasmer-sys
To build for WASM with Circom support and proof aggregation, run
cargo build --no-default-features --features=circom,aggregation,wasmer-js --target wasm32-unknown-unknown
To run all tests without std
, run
cargo test --no-default-features --features=std,circom,aggregation,wasmer-sys
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.
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".