https://github.com/arkworks-rs/crypto-primitives

Interfaces and implementations of cryptographic primitives, along with R1CS constraints for them

https://github.com/arkworks-rs/crypto-primitives

Science Score: 23.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
  • DOI references
  • Academic publication links
  • Committers with academic emails
    5 of 23 committers (21.7%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.1%) to scientific vocabulary

Keywords

cryptography hash-functions r1cs rust signatures snark

Keywords from Contributors

pairings elliptic-curves finite-fields polynomials marlin polynomial-commitments sonic zksnark groth16 zero-knowledge-proofs
Last synced: 5 months ago · JSON representation

Repository

Interfaces and implementations of cryptographic primitives, along with R1CS constraints for them

Basic Info
  • Host: GitHub
  • Owner: arkworks-rs
  • License: apache-2.0
  • Language: Rust
  • Default Branch: main
  • Homepage: https://www.arkworks.rs
  • Size: 354 KB
Statistics
  • Stars: 224
  • Watchers: 13
  • Forks: 109
  • Open Issues: 43
  • Releases: 1
Topics
cryptography hash-functions r1cs rust signatures snark
Created over 5 years ago · Last pushed 7 months ago
Metadata Files
Readme Changelog License Codeowners

README.md

ark-crypto-primitives

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 cryptographic primitives such as collision-resistant hash functions, hiding commitments, pseudo-random functions, signatures, and, optionally, R1CS constraints for these.

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/crypto-primitives.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.

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
  • Watch event: 44
  • Delete event: 7
  • Member event: 1
  • Issue comment event: 8
  • Push event: 9
  • Pull request event: 20
  • Pull request review comment event: 27
  • Pull request review event: 14
  • Fork event: 26
  • Create event: 10
Last Year
  • Watch event: 44
  • Delete event: 7
  • Member event: 1
  • Issue comment event: 8
  • Push event: 9
  • Pull request event: 20
  • Pull request review comment event: 27
  • Pull request review event: 14
  • Fork event: 26
  • Create event: 10

Committers

Last synced: 5 months ago

All Time
  • Total Commits: 97
  • Total Committers: 23
  • Avg Commits per committer: 4.217
  • Development Distribution Score (DDS): 0.742
Past Year
  • Commits: 10
  • Committers: 8
  • Avg Commits per committer: 1.25
  • Development Distribution Score (DDS): 0.7
Top Committers
Name Email Commits
Pratyush Mishra p****a@b****u 25
Weikeng Chen w****k@b****u 19
Marcin m****4@p****m 9
Tom Shen t****n@b****u 8
Hossein Moghaddas a****s@g****m 6
Nicholas Ward n****d@b****u 5
Michael Rosenberg m****l@m****b 4
Dev Ojha V****n@u****m 3
Chris Sosnin 4****r@u****m 2
Michael Rosenberg m****o@f****m 2
intx4 6****4@u****m 2
Alireza Shirzad a****r@s****u 1
Drew Stone d****9@g****m 1
Eli Margolin 3****o@u****m 1
François Garillot 4****r@u****m 1
Merlyn i****7@g****m 1
Merlyn m****n@l****o 1
Ruben De Smet r****t@r****e 1
Shumo Chu s****u@u****m 1
Veljko Vranić b****4@g****m 1
Wilson Nguyen w****7@g****m 1
kilic o****4@g****m 1
sam-steffen 4****n@u****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 56
  • Total pull requests: 99
  • Average time to close issues: 3 months
  • Average time to close pull requests: about 1 month
  • Total issue authors: 23
  • Total pull request authors: 28
  • Average comments per issue: 1.88
  • Average comments per pull request: 1.33
  • Merged pull requests: 75
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 19
  • Average time to close issues: N/A
  • Average time to close pull requests: 2 months
  • Issue authors: 1
  • Pull request authors: 13
  • Average comments per issue: 1.0
  • Average comments per pull request: 0.47
  • Merged pull requests: 6
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • weikengchen (9)
  • tsunrise (8)
  • Pratyush (7)
  • ValarDragon (4)
  • zhenfeizhang (3)
  • WizardOfMenlo (3)
  • mmagician (3)
  • rozbb (2)
  • hdevalence (2)
  • pventuzelo (2)
  • jon-chuang (2)
  • ii-cruz (1)
  • stechu (1)
  • andrewmilson (1)
  • kilic (1)
Pull Request Authors
  • Pratyush (20)
  • mmagician (17)
  • weikengchen (14)
  • autquis (12)
  • tsunrise (9)
  • rozbb (7)
  • ValarDragon (3)
  • indmind (2)
  • MercysJest (2)
  • mahmudsudo (2)
  • intx4 (2)
  • stechu (2)
  • lazovicff (2)
  • ecmargo (2)
  • maximevtush (2)
Top Labels
Issue Labels
T-feature (7) D-easy (5) T-design (5) T-refactor (4) D-medium (4) P-high (4) P-medium (2) T-documentation (2) P-low (2) D-hard (2) T-bug (1)
Pull Request Labels

Packages

  • Total packages: 2
  • Total downloads:
    • cargo 3,867,621 total
  • Total docker downloads: 41
  • Total dependent packages: 22
    (may contain duplicates)
  • Total dependent repositories: 531
    (may contain duplicates)
  • Total versions: 8
  • Total maintainers: 2
crates.io: ark-crypto-primitives

A library of useful cryptographic primitives

  • Versions: 6
  • Dependent Packages: 22
  • Dependent Repositories: 531
  • Downloads: 3,533,545 Total
  • Docker Downloads: 41
Rankings
Dependent repos count: 1.8%
Dependent packages count: 1.8%
Downloads: 2.0%
Average: 5.5%
Forks count: 8.9%
Stargazers count: 13.1%
Maintainers (1)
Last synced: 6 months ago
crates.io: ark-crypto-primitives-macros

A library of useful cryptographic primitives

  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 334,076 Total
Rankings
Dependent repos count: 27.0%
Dependent packages count: 35.8%
Average: 53.1%
Downloads: 96.4%
Maintainers (1)
Last synced: 6 months ago

Dependencies

Cargo.toml cargo
  • ark-bls12-377 ^0.3.0 development
  • ark-ed-on-bls12-381 ^0.3.0 development
  • ark-mnt4-298 ^0.3.0 development
  • ark-mnt6-298 ^0.3.0 development
  • ark-ec ^0.3.0
  • ark-ff ^0.3.0
  • ark-nonnative-field ^0.3.0
  • ark-r1cs-std ^0.3.0
  • ark-relations ^0.3.0
  • ark-serialize ^0.3.0
  • ark-snark ^0.3.0
  • ark-sponge ^0.3.0
  • ark-std ^0.3.0
  • blake2 0.9
  • derivative 2.0
  • digest 0.9
  • rayon 1.0
  • sha2 0.9
  • 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
.github/workflows/mdlinter.yml actions
  • actions/checkout v2 composite
  • github/super-linter/slim v4 composite
crypto-primitives/Cargo.toml cargo
  • ark-bls12-377 ^0.4.0 development
  • ark-ed-on-bls12-377 ^0.4.0 development
  • ark-ed-on-bls12-381 ^0.4.0 development
  • ark-mnt4-298 ^0.4.0 development
  • ark-mnt6-298 ^0.4.0 development
  • criterion 0.4 development
  • ark-crypto-primitives-macros ^0.4.0
  • ark-ec ^0.4.0
  • ark-ff ^0.4.0
  • ark-r1cs-std ^0.4.0
  • ark-relations ^0.4.0
  • ark-serialize ^0.4.0
  • ark-snark ^0.4.0
  • ark-std ^0.4.0
  • blake2 0.10
  • derivative 2.0
  • digest 0.10
  • rayon 1.0
  • sha2 0.10
  • tracing 0.1
macros/Cargo.toml cargo