diff --git a/algorithms/src/crh/bhp.rs b/algorithms/src/crh/bhp.rs index 5913428f15..bcda784be2 100644 --- a/algorithms/src/crh/bhp.rs +++ b/algorithms/src/crh/bhp.rs @@ -31,7 +31,7 @@ use rayon::prelude::*; // The stack is currently allocated with the following size // because we cannot specify them using the trait consts. const MAX_WINDOW_SIZE: usize = 256; -const MAX_NUM_WINDOWS: usize = 4096; +const MAX_NUM_WINDOWS: usize = 2048; pub const BOWE_HOPWOOD_CHUNK_SIZE: usize = 3; pub const BOWE_HOPWOOD_LOOKUP_SIZE: usize = 2usize.pow(BOWE_HOPWOOD_CHUNK_SIZE as u32); diff --git a/marlin/src/constraints/error.rs b/marlin/src/constraints/error.rs index b4357cce47..19e93b61a9 100644 --- a/marlin/src/constraints/error.rs +++ b/marlin/src/constraints/error.rs @@ -14,7 +14,7 @@ // You should have received a copy of the GNU General Public License // along with the snarkVM library. If not, see . -use crate::{ahp::AHPError, marlin::MarlinError, String}; +use crate::{ahp::AHPError, marlin::MarlinError, String, ToString}; use core::fmt::{Debug, Display, Formatter}; diff --git a/marlin/src/fiat_shamir/fiat_shamir_poseidon_sponge.rs b/marlin/src/fiat_shamir/fiat_shamir_poseidon_sponge.rs index 34af83a424..1055784238 100644 --- a/marlin/src/fiat_shamir/fiat_shamir_poseidon_sponge.rs +++ b/marlin/src/fiat_shamir/fiat_shamir_poseidon_sponge.rs @@ -25,7 +25,7 @@ use crate::{fiat_shamir::AlgebraicSponge, Vec}; use snarkvm_algorithms::crypto_hash::{CryptographicSponge, PoseidonDefaultParametersField}; use snarkvm_fields::PrimeField; -use std::sync::Arc; +use snarkvm_utilities::sync::Arc; /// The sponge for Poseidon #[derive(Clone, Debug)] diff --git a/wasm/Cargo.toml b/wasm/Cargo.toml index a1e4e50da9..49950f6a22 100644 --- a/wasm/Cargo.toml +++ b/wasm/Cargo.toml @@ -56,6 +56,7 @@ default-features = false path = "../marlin" version = "0.7.5" optional = true +default-features = false features = ["wasm"] [dependencies.snarkvm-polycommit]