Skip to content

Commit

Permalink
feat(core): use wasm3 to generate witness
Browse files Browse the repository at this point in the history
  • Loading branch information
vivianjeng committed Apr 11, 2024
1 parent bd55c58 commit 2e9ba99
Show file tree
Hide file tree
Showing 3 changed files with 215 additions and 34 deletions.
184 changes: 180 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 10 additions & 6 deletions mopro-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ edition = "2021"

[features]
default = ["wasmer/dylib"]
dylib = [] # NOTE: can probably remove this if we use env config instead
dylib = [] # NOTE: can probably remove this if we use env config instead
gpu-benchmarks = []
calc-native-witness = ["witness"] # experimental feature to calculate witness with witness graph
build-native-witness = ["witness/build-witness"] # only enable build-native-witness feature when building the witness graph
calc-native-witness = [
"witness",
] # experimental feature to calculate witness with witness graph
build-native-witness = [
"witness/build-witness",
] # only enable build-native-witness feature when building the witness graph

[dependencies]
ark-circom = { git = "https://github.com/arkworks-rs/circom-compat.git" }
ark-circom = { git = "https://github.com/vivianjeng/circom-compat-wasm3.git" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
ark-serialize = { version = "=0.4.1", features = ["derive"] }
Expand All @@ -39,7 +43,7 @@ ark-groth16 = { version = "=0.4.0", default-features = false, features = [
] }
ark-relations = { version = "0.4", default-features = false }
ark-zkey = { path = "../ark-zkey" }
witness = { git = "https://github.com/philsippl/circom-witness-rs.git", optional = true}
witness = { git = "https://github.com/philsippl/circom-witness-rs.git", optional = true }

# Error handling
thiserror = "=1.0.39"
Expand All @@ -53,7 +57,7 @@ wasmer = { git = "https://github.com/oskarth/wasmer.git", rev = "09c7070" }
toml = "0.8"
serde = "1.0"
serde_derive = "1.0"
witness = { git = "https://github.com/philsippl/circom-witness-rs.git", optional = true}
witness = { git = "https://github.com/philsippl/circom-witness-rs.git", optional = true }

[[bin]]
name = "generate_benchmark_report"
Expand Down
Loading

0 comments on commit 2e9ba99

Please sign in to comment.