{"id":13531951,"url":"https://github.com/arkworks-rs/snark","last_synced_at":"2025-04-01T20:30:51.636Z","repository":{"id":41091564,"uuid":"178915690","full_name":"arkworks-rs/snark","owner":"arkworks-rs","description":"Interfaces for Relations and SNARKs for these relations","archived":false,"fork":false,"pushed_at":"2025-03-20T13:38:11.000Z","size":2235,"stargazers_count":827,"open_issues_count":38,"forks_count":227,"subscribers_count":37,"default_branch":"master","last_synced_at":"2025-03-26T18:02:22.068Z","etag":null,"topics":["cryptography","r1cs","zero-knowledge-proofs"],"latest_commit_sha":null,"homepage":"https://www.arkworks.rs","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arkworks-rs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-01T17:43:29.000Z","updated_at":"2025-03-20T13:38:16.000Z","dependencies_parsed_at":"2025-03-07T17:37:17.606Z","dependency_job_id":null,"html_url":"https://github.com/arkworks-rs/snark","commit_stats":{"total_commits":480,"total_committers":30,"mean_commits":16.0,"dds":0.5479166666666666,"last_synced_commit":"8319f4b744589702a1cfbd44be1f7255544f8fe2"},"previous_names":["scipr-lab/zexe"],"tags_count":33,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arkworks-rs%2Fsnark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arkworks-rs%2Fsnark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arkworks-rs%2Fsnark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arkworks-rs%2Fsnark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arkworks-rs","download_url":"https://codeload.github.com/arkworks-rs/snark/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246709923,"owners_count":20821297,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cryptography","r1cs","zero-knowledge-proofs"],"created_at":"2024-08-01T07:01:07.156Z","updated_at":"2025-04-01T20:30:46.622Z","avatar_url":"https://github.com/arkworks-rs.png","language":"Rust","funding_links":[],"categories":["Cryptography","Rust"],"sub_categories":["Zero Knowledge Proofs"],"readme":"\u003ch1 align=\"center\"\u003eSNARK and Relation Traits\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://github.com/arkworks-rs/algebra/workflows/CI/badge.svg?branch=master\"\u003e\n    \u003ca href=\"https://github.com/arkworks-rs/algebra/blob/master/LICENSE-APACHE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-APACHE-blue.svg\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/arkworks-rs/algebra/blob/master/LICENSE-MIT\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://deps.rs/repo/github/arkworks-rs/algebra\"\u003e\u003cimg src=\"https://deps.rs/repo/github/arkworks-rs/algebra/status.svg\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nThe arkworks ecosystem consists of Rust libraries for designing and working with __zero knowledge succinct non-interactive arguments (zkSNARKs)__. This repository contains efficient libraries that describe interfaces for zkSNARKs, as well as interfaces for programming them.\n\nThis library is released under the MIT License and the Apache v2 License (see [License](#license)).\n\n**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.\n\n## Directory structure\n\nThis repository contains two Rust crates:\n\n* [`ark-snark`](snark): Provides generic traits for zkSNARKs\n* [`ark-relations`](relations): Provides generic traits for NP relations used in programming zkSNARKs, such as R1CS\n\n## Overview\n\nThis repository provides the core infrastructure for using the succinct argument systems that arkworks provides. Users who want to produce arguments about various problems of interest will first reduce those problems to an NP relation, various examples of which are defined in the `ark-relations` crate. Then a SNARK system defined over that relation is used to produce a succinct argument. The `ark-snark` crate defines a `SNARK` trait that encapsulates the general functionality, as well as specific traits for various types of SNARK (those with transparent and universal setup, for instance). Different repositories within the arkworks ecosystem implement this trait for various specific SNARK constructions, such as [Groth16](https://github.com/arkworks-rs/groth16), [GM17](https://github.com/arkworks-rs/gm17), and [Marlin](https://github.com/arkworks-rs/marlin).\n\n## Build guide\n\nThe 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:\n```bash\nrustup install stable\n```\n\nAfter that, use `cargo`, the standard Rust build tool, to build the libraries:\n```bash\ngit clone https://github.com/arkworks-rs/snark.git\ncd snark\ncargo build --release\n```\n\n## Tests\nThis library comes with comprehensive unit and integration tests for each of the provided crates. Run the tests with:\n```bash\ncargo test --all\n```\n\n## License\n\nThe crates in this repo are licensed under either of the following licenses, at your discretion.\n\n * Apache License Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nUnless 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.\n\n[zexe]: https://ia.cr/2018/962\n\n## Acknowledgements\n\nThis work was supported by:\na Google Faculty Award;\nthe National Science Foundation;\nthe UC Berkeley Center for Long-Term Cybersecurity;\nand donations from the Ethereum Foundation, the Interchain Foundation, and Qtum.\n\nAn earlier version of this library was developed as part of the paper *\"[ZEXE: Enabling Decentralized Private Computation][zexe]\"*.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farkworks-rs%2Fsnark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farkworks-rs%2Fsnark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farkworks-rs%2Fsnark/lists"}