-
Notifications
You must be signed in to change notification settings - Fork 550
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move
bellman::groth16
into a separate crate
- Loading branch information
Showing
18 changed files
with
141 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
[workspace] | ||
members = [ | ||
".", | ||
"groth16", | ||
] | ||
|
||
[package] | ||
authors = [ | ||
"Sean Bowe <[email protected]>", | ||
|
@@ -34,23 +40,17 @@ rayon = { version = "1.5.1", optional = true } | |
bls12_381 = "0.8" | ||
criterion = "0.4" | ||
hex-literal = "0.3" | ||
pairing = "0.23" | ||
rand = "0.8" | ||
rand_xorshift = "0.3" | ||
sha2 = "0.10" | ||
|
||
# Only for doctests. | ||
groth16 = { path = "groth16" } | ||
|
||
[features] | ||
groth16 = ["pairing"] | ||
multicore = ["crossbeam-channel", "lazy_static", "log", "num_cpus", "rayon", "rand_core/getrandom"] | ||
default = ["groth16", "multicore"] | ||
|
||
[[test]] | ||
name = "mimc" | ||
path = "tests/mimc.rs" | ||
required-features = ["groth16"] | ||
|
||
[[bench]] | ||
name = "batch" | ||
harness = false | ||
default = ["multicore"] | ||
|
||
[[bench]] | ||
name = "slow" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to Rust's notion of | ||
[Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [Unreleased] | ||
Initial release (moved from `bellman::groth16`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[package] | ||
name = "groth16" | ||
version = "0.0.0" | ||
authors = [ | ||
"Sean Bowe <[email protected]>", | ||
"Jack Grigg <[email protected]>", | ||
] | ||
edition = "2021" | ||
rust-version = "1.60" | ||
description = "Groth16 prover and verifier for Bellman" | ||
readme = "README.md" | ||
homepage = "https://github.com/zkcrypto/bellman" | ||
repository = "https://github.com/zkcrypto/bellman" | ||
license = "MIT OR Apache-2.0" | ||
|
||
[dependencies] | ||
bellman = { version = "0.14", path = "../" } | ||
byteorder = "1" | ||
ff = "0.13" | ||
group = "0.13" | ||
pairing = "0.23" | ||
rand_core = "0.6" | ||
|
||
[dev-dependencies] | ||
bls12_381 = "0.8" | ||
criterion = "0.4" | ||
rand = "0.8" | ||
subtle = "2.2.1" | ||
|
||
[[bench]] | ||
name = "batch" | ||
harness = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# groth16 [![Crates.io](https://img.shields.io/crates/v/groth16.svg)](https://crates.io/crates/groth16) # | ||
|
||
`groth16` is an implementation of the Groth16 proving system, backed by the | ||
`bellman` circuit-building library. | ||
|
||
## License | ||
|
||
Licensed under either of | ||
|
||
* Apache License, Version 2.0, ([LICENSE-APACHE](../LICENSE-APACHE) or | ||
http://www.apache.org/licenses/LICENSE-2.0) | ||
* MIT license ([LICENSE-MIT](../LICENSE-MIT) or http://opensource.org/licenses/MIT) | ||
|
||
at your option. | ||
|
||
### Contribution | ||
|
||
Unless you explicitly state otherwise, any contribution intentionally | ||
submitted for inclusion in the work by you, as defined in the Apache-2.0 | ||
license, shall be dual licensed as above, without any additional terms or | ||
conditions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.