Skip to content

Commit

Permalink
anon mining benchmarks compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
akileshtangella committed Mar 20, 2023
1 parent 8fae9f2 commit 061813b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

13 changes: 6 additions & 7 deletions pallets/anonymity-mining-claims/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ frame-system = { default-features = false, git = "https://github.com/paritytech/
frame-benchmarking = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.36" }
sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.36" }
sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.36" }
webb-primitives = { path = "../../primitives", default-features = false }
webb-primitives = { path = "../../primitives", features=["hashing", "verifying", "field_ops"], default-features = false }

ark-std = { version = "^0.3.0", default-features = false }
ark-bn254 = { version = "^0.3.0", default-features = false, features = ["curve"] }
Expand All @@ -42,7 +42,7 @@ ark-ff = { version = "^0.3.0", optional=true, default-features = false }
ark-relations = { version = "^0.3.0", optional=true, default-features = false }
arkworks-setups = { version = "1.2.1", optional=true, features = ["r1cs"], default-features = false }
ark-circom = { git = "https://github.com/vacp2p/ark-circom", optional=true, branch = "wasm", default-features = false, features = ["circom-2"] }
# wasmer = { version = "2.3.0", optional=true, default-features = false }
wasmer = { version = "2.3.0", optional=true, default-features = false }
# circom-proving = { path = "../../circom-proving", optional = true, default-features = false }
ark-groth16 = { git = "https://github.com/arkworks-rs/groth16", optional=true, rev = "765817f", default-features = false, features = ["parallel"] }

Expand Down Expand Up @@ -85,11 +85,10 @@ runtime-benchmarks = [
"ark-ff",
"arkworks-setups/r1cs",
"ark-relations",
# "std",
# "ark-circom",
# "ark-groth16",
"ark-circom/circom-2",
"ark-groth16/parallel",
# "circom-proving",
# "wasmer/sys-default"
"wasmer/sys-default"
]
std = [
"codec/std",
Expand All @@ -111,4 +110,4 @@ std = [
"pallet-token-wrapper/std",

]
# wasm = ["wasmer/js", "wasmer/std"]
wasm = ["wasmer/js", "wasmer/std"]
6 changes: 3 additions & 3 deletions primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@ ark-bls12-381 = { version = "^0.3.0", default-features = false, features = ["cur
ark-bn254 = { version = "^0.3.0", default-features = false, features = ["curve"], optional = true }
ark-ec = { version = "^0.3.0", default-features = false }
ark-ff = { version = "^0.3.0", default-features = false }
# ark-groth16 = { git = "https://github.com/arkworks-rs/groth16", rev = "765817f", default-features = false, features = ["parallel"] }
ark-groth16 = { version = "^0.3.0", default-features = false }
ark-groth16 = { optional=true, git = "https://github.com/arkworks-rs/groth16", rev = "765817f", default-features = false, features = ["parallel"] }
# ark-groth16 = { version = "^0.3.0", default-features = false }
ark-relations = { version = "^0.3.0", default-features = false }
ark-serialize = { version = "^0.3.0", default-features = false, features = ["derive"] }
ark-std = { version = "^0.3.0", default-features = false }
# ark-circom = { git = "https://github.com/gakonst/ark-circom.git", default-features = false }

byteorder = { version = "1", default-features = false }
blake2 = { version = "0.9", default-features = false }
Expand Down Expand Up @@ -72,4 +71,5 @@ verifying = [
"arkworks-native-gadgets",
"ark-bls12-381",
"ark-bn254",
"ark-groth16/parallel"
]

0 comments on commit 061813b

Please sign in to comment.