https://github.com/arkworks-rs/r1cs-std

R1CS constraints for bits, fields, and elliptic curves

https://github.com/arkworks-rs/r1cs-std

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    7 of 32 committers (21.9%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.5%) to scientific vocabulary

Keywords

cryptography r1cs rust snarks

Keywords from Contributors

pairings elliptic-curves finite-fields polynomials zksnark snark zero-knowledge-proofs arkworks standard-library groth16
Last synced: 5 months ago · JSON representation

Repository

R1CS constraints for bits, fields, and elliptic curves

Basic Info
  • Host: GitHub
  • Owner: arkworks-rs
  • License: apache-2.0
  • Language: Rust
  • Default Branch: master
  • Homepage: https://www.arkworks.rs
  • Size: 1.06 MB
Statistics
  • Stars: 179
  • Watchers: 13
  • Forks: 91
  • Open Issues: 36
  • Releases: 3
Topics
cryptography r1cs rust snarks
Created over 5 years ago · Last pushed 7 months ago
Metadata Files
Readme Changelog Contributing License Codeowners

README.md

ark-r1cs-std

The arkworks ecosystem consist of Rust libraries for designing and working with zero knowledge succinct non-interactive arguments (zkSNARKs). This repository contains efficient implementations of constraint "gadgets" that enable checking common computations inside SNARKs, such as bit operations, finite field arithmetic, elliptic curve arithmetic, and pairings.

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: bash rustup install stable

After that, use cargo, the standard Rust build tool, to build the library: bash git clone https://github.com/arkworks-rs/r1cs-std.git cargo build --release

This library comes with unit tests for each of the provided crates. Run the tests with: bash 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".

Owner

  • Name: arkworks
  • Login: arkworks-rs
  • Kind: organization

An ecosystem for developing and programming with zkSNARKs

GitHub Events

Total
  • Issues event: 6
  • Watch event: 29
  • Delete event: 19
  • Issue comment event: 23
  • Push event: 25
  • Pull request review comment event: 18
  • Pull request event: 48
  • Pull request review event: 36
  • Fork event: 19
  • Create event: 22
Last Year
  • Issues event: 6
  • Watch event: 29
  • Delete event: 19
  • Issue comment event: 23
  • Push event: 25
  • Pull request review comment event: 18
  • Pull request event: 48
  • Pull request review event: 36
  • Fork event: 19
  • Create event: 22

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 262
  • Total Committers: 32
  • Avg Commits per committer: 8.188
  • Development Distribution Score (DDS): 0.607
Past Year
  • Commits: 18
  • Committers: 10
  • Avg Commits per committer: 1.8
  • Development Distribution Score (DDS): 0.722
Top Committers
Name Email Commits
Pratyush Mishra p****a@b****u 103
Weikeng Chen w****k@b****u 26
ValarDragon d****2@g****m 20
Kobi Gurkan k****k@g****m 19
François Garillot f****s@g****t 11
jon-chuang 9****g 8
mmagician m****4@p****m 8
Pascal Berrang c****t@p****t 8
Georgios Konstantopoulos me@g****m 6
Tom Shen t****n@b****u 6
Sergey Vasilyev s****v@g****m 5
winderica w****a@g****m 5
dependabot-preview[bot] 2****] 4
Howard Wu h****u@b****u 4
Nirvan Tyagi n****i@g****m 4
Marek Kotewicz m****z@g****m 3
Chris Sosnin 4****r 3
Michele Orrù m****r@p****t 2
Yuxiang Qiu y****u@p****e 2
onewayfunc 5****c 2
Youssef El Housni y****1@g****m 2
oblivious-app 5****p 1
hrxi h****i@g****m 1
William Lin 3****4 1
Tom Godden 8****n 1
Sergey Kaunov s****v@d****g 1
Maciej Skrzypkowski m****r@g****m 1
GarmashAlex g****i@g****m 1
Elder Ryan r****g@i****g 1
Bruno França 4****a 1
and 2 more...
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 41
  • Total pull requests: 145
  • Average time to close issues: 5 months
  • Average time to close pull requests: about 1 month
  • Total issue authors: 15
  • Total pull request authors: 42
  • Average comments per issue: 1.83
  • Average comments per pull request: 1.19
  • Merged pull requests: 98
  • Bot issues: 0
  • Bot pull requests: 6
Past Year
  • Issues: 1
  • Pull requests: 57
  • Average time to close issues: N/A
  • Average time to close pull requests: 29 days
  • Issue authors: 1
  • Pull request authors: 22
  • Average comments per issue: 1.0
  • Average comments per pull request: 0.47
  • Merged pull requests: 23
  • Bot issues: 0
  • Bot pull requests: 2
Top Authors
Issue Authors
  • weikengchen (11)
  • Pratyush (8)
  • tsunrise (6)
  • ValarDragon (3)
  • hrxi (2)
  • mmagician (2)
  • That3Percent (1)
  • PayneJoe (1)
  • readygo67 (1)
  • deevashwer (1)
  • brucechin (1)
  • slumber (1)
  • hadasz (1)
  • winderica (1)
  • timoftime (1)
Pull Request Authors
  • Pratyush (39)
  • weikengchen (17)
  • mmagician (10)
  • winderica (8)
  • ValarDragon (7)
  • yuxqiu (6)
  • tsunrise (6)
  • slumber (4)
  • skaunov (4)
  • dependabot-preview[bot] (4)
  • GarmashAlex (3)
  • Guayaba221 (2)
  • shystrui1199 (2)
  • onewayfunc (2)
  • mskrzypkows (2)
Top Labels
Issue Labels
D-easy (13) T-feature (8) T-performance (5) P-low (4) T-refactor (3) P-high (3) T-design (3) D-medium (2) P-medium (2) D-hard (2) breaking-change (2) T-test (1) T-documentation (1) T-bug (1) T-tracking (1)
Pull Request Labels
dependencies (6) T-bug (1)

Packages

  • Total packages: 1
  • Total downloads:
    • cargo 1,895,408 total
  • Total docker downloads: 7,565
  • Total dependent packages: 52
  • Total dependent repositories: 167
  • Total versions: 9
  • Total maintainers: 1
  • Total advisories: 1
crates.io: ark-r1cs-std

A standard library for constraint system gadgets

  • Versions: 9
  • Dependent Packages: 52
  • Dependent Repositories: 167
  • Downloads: 1,895,408 Total
  • Docker Downloads: 7,565
Rankings
Dependent packages count: 0.9%
Docker downloads count: 1.9%
Downloads: 2.2%
Dependent repos count: 3.0%
Average: 5.5%
Forks count: 10.7%
Stargazers count: 14.0%
Maintainers (1)
Last synced: 6 months ago

Dependencies

Cargo.toml cargo
  • ark-ec ^0.3.0
  • ark-ff ^0.3.0
  • ark-relations ^0.3.0
  • ark-std ^0.3.0
  • derivative 2
  • num-bigint 0.4
  • num-integer 0.1.44
  • num-traits 0.2
  • tracing 0.1
.github/workflows/ci.yml actions
  • actions-rs/cargo v1 composite
  • actions-rs/toolchain v1 composite
  • actions/cache v2 composite
  • actions/checkout v2 composite
  • actions/checkout v1 composite
.github/workflows/linkify_changelog.yml actions
  • actions/checkout v2 composite