@@ -5,8 +5,8 @@ use commonware_cryptography::Sha256;
55use commonware_parallel:: Sequential ;
66use commonware_runtime:: { buffer:: paged:: CacheRef , deterministic, BufferPooler , Metrics , Runner } ;
77use commonware_storage:: merkle:: {
8- full:: Config , hasher:: Standard , mem:: Mem , mmb, mmr, Error , Family as MerkleFamily , Location ,
9- LocationRangeExt as _, Position ,
8+ full:: Config , hasher:: Standard , mem:: Mem , mmb, mmr, Bagging :: ForwardFold , Error ,
9+ Family as MerkleFamily , Location , LocationRangeExt as _, Position ,
1010} ;
1111use commonware_utils:: { non_empty_range, NZUsize , NZU16 , NZU64 } ;
1212use libfuzzer_sys:: fuzz_target;
@@ -92,7 +92,7 @@ fn historical_root<F: MerkleFamily>(
9292 leaves : & [ Vec < u8 > ] ,
9393 requested_leaves : Location < F > ,
9494) -> <Sha256 as commonware_cryptography:: Hasher >:: Digest {
95- let hasher = Standard :: < Sha256 > :: new ( ) ;
95+ let hasher = Standard :: < Sha256 > :: new ( ForwardFold ) ;
9696 let mut mem = Mem :: < F , _ > :: new ( ) ;
9797 let batch = {
9898 let mut batch = mem. new_batch ( ) ;
@@ -115,7 +115,7 @@ fn fuzz_family<F: MerkleFamily>(input: &FuzzInput, suffix: &str) {
115115 let operations = input. operations . clone ( ) ;
116116 async move {
117117 let mut leaves = Vec :: new ( ) ;
118- let hasher = Standard :: < Sha256 > :: new ( ) ;
118+ let hasher = Standard :: < Sha256 > :: new ( ForwardFold ) ;
119119 let mut merkle =
120120 Merkle :: < F , _ , _ > :: init ( context. clone ( ) , & hasher, test_config ( suffix, & context) )
121121 . await
@@ -258,7 +258,7 @@ fn fuzz_family<F: MerkleFamily>(input: &FuzzInput, suffix: &str) {
258258 . await ;
259259 match result {
260260 Ok ( historical_proof) => {
261- let verify_hasher = Standard :: < Sha256 > :: new ( ) ;
261+ let verify_hasher = Standard :: < Sha256 > :: new ( ForwardFold ) ;
262262 assert ! ( historical_proof. verify_range_inclusion(
263263 & verify_hasher,
264264 & leaves[ range. to_usize_range( ) ] ,
0 commit comments