@@ -143,7 +143,7 @@ fn supported_root_specs<F: MerkleFamily>(merkle: &Mem<F, Digest>) -> Vec<(Baggin
143143}
144144
145145fn fuzz_element_proof < F : MerkleFamily > ( input : & FuzzInput , digests : & [ Digest ] ) {
146- let build_hasher = Standard :: < Sha256 > :: new ( ) ;
146+ let build_hasher = Standard :: < Sha256 > :: new ( commonware_storage :: merkle :: Bagging :: ForwardFold ) ;
147147 let mut merkle = Mem :: < F , Digest > :: new ( ) ;
148148 let batch = {
149149 let mut batch = merkle. new_batch ( ) ;
@@ -155,7 +155,7 @@ fn fuzz_element_proof<F: MerkleFamily>(input: &FuzzInput, digests: &[Digest]) {
155155 merkle. apply_batch ( & batch) . unwrap ( ) ;
156156
157157 for ( bagging, inactive_peaks) in supported_root_specs ( & merkle) {
158- let hasher = Standard :: < Sha256 > :: with_bagging ( bagging) ;
158+ let hasher = Standard :: < Sha256 > :: new ( bagging) ;
159159 let root = merkle. root ( & hasher, inactive_peaks) . unwrap ( ) ;
160160 for ( leaf, element) in digests. iter ( ) . enumerate ( ) {
161161 let loc = Location :: < F > :: new ( leaf as u64 ) ;
@@ -179,7 +179,7 @@ fn fuzz_element_proof<F: MerkleFamily>(input: &FuzzInput, digests: &[Digest]) {
179179}
180180
181181fn fuzz_range_proof < F : MerkleFamily > ( input : & FuzzInput , digests : & [ Digest ] ) {
182- let hasher = Standard :: < Sha256 > :: new ( ) ;
182+ let hasher = Standard :: < Sha256 > :: new ( commonware_storage :: merkle :: Bagging :: ForwardFold ) ;
183183 let mut merkle = Mem :: < F , Digest > :: new ( ) ;
184184 let batch = {
185185 let mut batch = merkle. new_batch ( ) ;
@@ -229,7 +229,7 @@ fn fuzz_range_proof<F: MerkleFamily>(input: &FuzzInput, digests: &[Digest]) {
229229 }
230230
231231 for ( bagging, inactive_peaks) in supported_root_specs ( & merkle) {
232- let hasher = Standard :: < Sha256 > :: with_bagging ( bagging) ;
232+ let hasher = Standard :: < Sha256 > :: new ( bagging) ;
233233 let root = merkle. root ( & hasher, inactive_peaks) . unwrap ( ) ;
234234 let Ok ( original_proof) = block_on ( verification:: historical_range_proof (
235235 & hasher,
0 commit comments