forked from privacy-scaling-explorations/halo2
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove book and halo2. Move everything to parent repo. * Remove Shuffle * Remove IPA * Remove SHPLONK * Remove compressed selectors * Temporarily remove examples and benches * Working version of new polynomial commitment scheme interface. * Plonk working parametrised only by F and PCS. * Bring examples and benches back * Update to halo2curves 0.7.0 * Apply tachyon optimizations privacy-scaling-explorations#342 * Cost model update * * Implement PartialEq, Eq, Hash for Cell and AssignedCell * Add table, compressed and normal rows count. * Add rows and table rows to cost model. * Ignore unassigned cells if they are multiplied by zero * Some format values are written as "Scalar(0x..)" The hotfix was to change the stripping rules, but this is probably an incorrect implementation of certain traits for one of the curves. * Review comments * Just moving things around! Used the same style as we have in midnight-circuits. Modules are defined with a `mod.rs` file inside the folder, instead of with a file at root level with the same name. I've also created a module for utils and one for the transcript. * Remove issue template * Review comments * Bring back using the SerdeFormat for keys * Address review comments * Leftover docs
- Loading branch information
1 parent
73408a1
commit 07c0239
Showing
175 changed files
with
3,696 additions
and
18,693 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,100 @@ | ||
[workspace] | ||
members = [ | ||
"halo2", | ||
"halo2_proofs", | ||
[package] | ||
name = "halo2_proofs" | ||
version = "0.3.0" | ||
authors = [ | ||
"Sean Bowe <[email protected]>", | ||
"Ying Tong Lai <[email protected]>", | ||
"Daira Hopwood <[email protected]>", | ||
"Jack Grigg <[email protected]>", | ||
] | ||
edition = "2021" | ||
rust-version = "1.76.0" | ||
description = """ | ||
Fast PLONK-based zero-knowledge proving system | ||
""" | ||
license = "MIT OR Apache-2.0" | ||
repository = "https://github.com/input-output-hk/halo2" | ||
readme = "README.md" | ||
categories = ["cryptography"] | ||
keywords = ["halo", "proofs", "zkp", "zkSNARKs"] | ||
|
||
[package.metadata.docs.rs] | ||
all-features = true | ||
rustdoc-args = ["--cfg", "docsrs", "--html-in-header", "katex-header.html"] | ||
|
||
[[bench]] | ||
name = "commit_zk" | ||
harness = false | ||
|
||
[[bench]] | ||
name = "hashtocurve" | ||
harness = false | ||
|
||
[[bench]] | ||
name = "plonk" | ||
harness = false | ||
|
||
[[bench]] | ||
name = "dev_lookup" | ||
harness = false | ||
|
||
[dependencies] | ||
backtrace = { version = "0.3", optional = true } | ||
ff = "0.13" | ||
group = "0.13" | ||
halo2curves = { version = "0.7.0", default-features = false } | ||
rand_core = { version = "0.6", default-features = false } | ||
tracing = "0.1" | ||
blake2b_simd = "1" # MSRV 1.66.0 | ||
sha3 = "0.9.1" | ||
rand_chacha = "0.3" | ||
serde = { version = "1", optional = true, features = ["derive"] } | ||
serde_derive = { version = "1", optional = true} | ||
rayon = "1.8" | ||
|
||
# Developer tooling dependencies | ||
plotters = { version = "0.3.0", default-features = false, optional = true } | ||
tabbycat = { version = "0.1", features = ["attributes"], optional = true } | ||
|
||
# Legacy circuit compatibility | ||
halo2_legacy_pdqsort = { version = "0.1.0", optional = true } | ||
|
||
[dev-dependencies] | ||
assert_matches = "1.5" | ||
criterion = "0.3" | ||
gumdrop = "0.8" | ||
proptest = "1" | ||
rand_core = { version = "0.6", default-features = false, features = ["getrandom"] } | ||
serde_json = "1" | ||
|
||
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dev-dependencies] | ||
getrandom = { version = "0.2", features = ["js"] } | ||
|
||
[features] | ||
default = ["batch", "bits"] | ||
dev-graph = ["plotters", "tabbycat"] | ||
test-dev-graph = [ | ||
"dev-graph", | ||
"plotters/bitmap_backend", | ||
"plotters/bitmap_encoder", | ||
"plotters/ttf", | ||
] | ||
bits = ["halo2curves/bits"] | ||
gadget-traces = ["backtrace"] | ||
thread-safe-region = [] | ||
sanity-checks = [] | ||
batch = ["rand_core/getrandom"] | ||
circuit-params = [] | ||
cost-estimator = ["serde", "serde_derive"] | ||
derive_serde = ["halo2curves/derive_serde"] | ||
|
||
[lib] | ||
bench = false | ||
|
||
[[example]] | ||
name = "circuit-layout" | ||
required-features = ["test-dev-graph"] | ||
|
||
[[example]] | ||
name = "proof-size" | ||
required-features = ["cost-estimator"] |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.