-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the experimental frontends into a separate crate, so that when n…
…ot using them they don't take several minutes to compile (and indirect dependencies). This saves several minutes (and MBs of data) on compilation time both when running tests in this repo, but also when using the sonobe lib as a dependency in external repos.
- Loading branch information
Showing
33 changed files
with
136 additions
and
99 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,8 @@ | |
members = [ | ||
"folding-schemes", | ||
"solidity-verifiers", | ||
"cli" | ||
"cli", | ||
"frontends" | ||
] | ||
resolver = "2" | ||
|
||
|
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
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
[package] | ||
name = "frontends" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
ark-ec = { version = "^0.4.0", default-features = false, features = ["parallel"] } | ||
ark-ff = { version = "^0.4.0", default-features = false, features = ["parallel", "asm"] } | ||
ark-poly = { version = "^0.4.0", default-features = false, features = ["parallel"] } | ||
ark-std = { version = "^0.4.0", default-features = false, features = ["parallel"] } | ||
ark-relations = { version = "^0.4.0", default-features = false } | ||
# this is patched at the workspace level | ||
ark-r1cs-std = { version = "0.4.0", default-features = false, features = ["parallel"] } | ||
ark-serialize = { version = "^0.4.0", default-features = false } | ||
ark-circom = { git = "https://github.com/arnaucube/circom-compat", default-features = false } | ||
num-bigint = "0.4" | ||
color-eyre = "=0.6.2" | ||
ark-noname = { git = "https://github.com/dmpierre/ark-noname", branch = "feat/sonobe-integration" } | ||
noname = { git = "https://github.com/dmpierre/noname" } | ||
serde_json = "1.0.85" # to (de)serialize JSON | ||
acvm = { git = "https://github.com/noir-lang/noir", rev="2b4853e", default-features = false } | ||
noir_arkworks_backend = { package="arkworks_backend", git = "https://github.com/dmpierre/arkworks_backend", branch = "feat/sonobe-integration" } | ||
folding-schemes = { path = "../folding-schemes/"} | ||
|
||
# tmp import for espresso's sumcheck | ||
espresso_subroutines = {git="https://github.com/EspressoSystems/hyperplonk", package="subroutines"} | ||
|
||
[dev-dependencies] | ||
ark-bn254 = {version="0.4.0", features=["r1cs"]} | ||
|
||
# This allows the crate to be built when targeting WASM. | ||
# See more at: https://docs.rs/getrandom/#webassembly-support | ||
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies] | ||
getrandom = { version = "0.2", features = ["js"] } | ||
|
||
[features] | ||
default = ["ark-circom/default", "parallel"] | ||
parallel = [] | ||
wasm = ["ark-circom/wasm"] |
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,14 @@ | ||
# frontends | ||
|
||
Experimental frontends for Sonobe. | ||
The recommended frontend is to directly use [arkworks](https://github.com/arkworks-rs) to define the FCircuit, just following the [`FCircuit` trait](https://github.com/privacy-scaling-explorations/sonobe/blob/main/folding-schemes/src/frontend/mod.rs). | ||
|
||
## Experimental frontends | ||
> Warning: the following frontends are experimental and some computational and time overhead is expected when using them compared to directly using the [arkworks frontend](https://github.com/privacy-scaling-explorations/sonobe/blob/main/folding-schemes/src/frontend/mod.rs). | ||
- [Circom](https://github.com/iden3/circom), iden3, 0Kims Association (supported v2.1.9) | ||
- [Noir](https://github.com/noir-lang/noir), Aztec | ||
- [Noname](https://github.com/zksecurity/noname), zkSecurity | ||
|
||
|
||
More details about frontends: https://privacy-scaling-explorations.github.io/sonobe-docs/usage/frontend.html |
Oops, something went wrong.