6 releases (3 breaking)

0.5.0 Oct 28, 2024
0.5.0-alpha.0 Jun 20, 2024
0.4.0 Jan 17, 2023
0.4.0-alpha Oct 21, 2022
0.2.0 Mar 24, 2021

#61 in Cryptography

Download history 196409/week @ 2024-07-25 201398/week @ 2024-08-01 232889/week @ 2024-08-08 204629/week @ 2024-08-15 217593/week @ 2024-08-22 223440/week @ 2024-08-29 240878/week @ 2024-09-05 218996/week @ 2024-09-12 377124/week @ 2024-09-19 391796/week @ 2024-09-26 818534/week @ 2024-10-03 757572/week @ 2024-10-10 776804/week @ 2024-10-17 321176/week @ 2024-10-24 273094/week @ 2024-10-31 253988/week @ 2024-11-07

1,683,352 downloads per month
Used in 2,415 crates (181 directly)

MIT/Apache

55KB
910 lines

arkworks::std

The arkworks ecosystem consists of Rust libraries for designing and working with zero knowledge succinct non-interactive arguments (zkSNARKs). This repository contains ark-std, a library that serves as a compatibility layer for no_std use cases, and also contains useful methods and types used by the rest of the arkworks ecosystem.

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 libraries:

git clone https://github.com/arkworks-rs/utils.git
cd utils
cargo build --release

Tests

This library comes with comprehensive unit and integration tests for each of the provided crates. Run the tests with:

cargo test --all

Benchmarks

To run the benchmarks, install the nightly Rust toolchain, via rustup install nightly, and then run the following command:

cargo +nightly bench

License

The crates in this repository are 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".

Dependencies

~1–12MB
~87K SLoC