mirror of
https://github.com/arnaucube/Nova.git
synced 2026-01-11 08:31:29 +01:00
Add Wasm support (#125)
* Add Wasm support * Use SeedableRng for Wasm randomness * Fix tests * Formatting
This commit is contained in:
10
Cargo.toml
10
Cargo.toml
@@ -14,7 +14,6 @@ keywords = ["zkSNARKs", "cryptography", "proofs"]
|
|||||||
bellperson = { version = "0.24", default-features = false }
|
bellperson = { version = "0.24", default-features = false }
|
||||||
ff = { version = "0.12.0", features = ["derive"]}
|
ff = { version = "0.12.0", features = ["derive"]}
|
||||||
merlin = "2.0.0"
|
merlin = "2.0.0"
|
||||||
rand = "0.8.4"
|
|
||||||
digest = "0.8.1"
|
digest = "0.8.1"
|
||||||
sha3 = "0.8.2"
|
sha3 = "0.8.2"
|
||||||
rayon = "1.3.0"
|
rayon = "1.3.0"
|
||||||
@@ -34,8 +33,12 @@ flate2 = "1.0"
|
|||||||
bitvec = "1.0"
|
bitvec = "1.0"
|
||||||
byteorder = "1.4.3"
|
byteorder = "1.4.3"
|
||||||
|
|
||||||
|
[target.'cfg(any(target_arch = "x86_64", target_arch = "aarch64"))'.dependencies]
|
||||||
|
pasta-msm = "0.1.3"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
criterion = "0.3.1"
|
criterion = "0.3.1"
|
||||||
|
rand = "0.8.4"
|
||||||
|
|
||||||
[[bench]]
|
[[bench]]
|
||||||
name = "recursive-snark"
|
name = "recursive-snark"
|
||||||
@@ -46,7 +49,4 @@ name = "compressed-snark"
|
|||||||
harness = false
|
harness = false
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["bellperson/default", "neptune/default"]
|
default = [ "bellperson/default", "neptune/default" ]
|
||||||
|
|
||||||
[target.'cfg(any(target_arch = "x86_64", target_arch = "aarch64"))'.dependencies]
|
|
||||||
pasta-msm = "0.1.3"
|
|
||||||
|
|||||||
@@ -14,8 +14,7 @@ use pasta_curves::{
|
|||||||
group::{Curve, Group as AnotherGroup, GroupEncoding},
|
group::{Curve, Group as AnotherGroup, GroupEncoding},
|
||||||
pallas, vesta, Ep, Eq,
|
pallas, vesta, Ep, Eq,
|
||||||
};
|
};
|
||||||
use rand::SeedableRng;
|
use rand_chacha::{rand_core::SeedableRng, ChaCha20Rng};
|
||||||
use rand_chacha::ChaCha20Rng;
|
|
||||||
use sha3::Shake256;
|
use sha3::Shake256;
|
||||||
use std::io::Read;
|
use std::io::Read;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user