@@ -179,7 +179,10 @@ pub(crate) mod test {
179179 use super :: * ;
180180 use crate :: {
181181 journal:: contiguous:: { fixed:: Config as FConfig , variable:: Config as VConfig } ,
182- qmdb:: any:: { FixedConfig , MerkleConfig , VariableConfig } ,
182+ qmdb:: {
183+ self ,
184+ any:: { FixedConfig , MerkleConfig , VariableConfig } ,
185+ } ,
183186 translator:: OneCap ,
184187 } ;
185188 use commonware_codec:: { Codec , CodecShared } ;
@@ -258,7 +261,7 @@ pub(crate) mod test {
258261 use crate :: {
259262 index:: Unordered as UnorderedIndex ,
260263 journal:: contiguous:: Mutable ,
261- merkle:: { self , mmr} ,
264+ merkle:: mmr,
262265 qmdb:: any:: {
263266 db:: Db as AnyDb ,
264267 operation:: { update:: Update as UpdateTrait , Operation as AnyOperation } ,
@@ -627,7 +630,7 @@ pub(crate) mod test {
627630 V : CodecShared + Clone + Eq + std:: hash:: Hash + std:: fmt:: Debug ,
628631 <D as Provable < mmr:: Family > >:: Operation : Codec ,
629632 {
630- use crate :: { mmr :: StandardHasher , qmdb:: verify_proof} ;
633+ use crate :: qmdb:: verify_proof;
631634
632635 const ELEMENTS : u64 = 1000 ;
633636
@@ -689,7 +692,7 @@ pub(crate) mod test {
689692 }
690693 }
691694
692- let hasher = StandardHasher :: < Sha256 > :: with_bagging ( merkle :: Bagging :: BackwardFold ) ;
695+ let hasher = qmdb :: hasher :: < Sha256 > ( ) ;
693696 let bounds = db. bounds ( ) . await ;
694697 let inactivity_floor = db. inactivity_floor_loc ( ) . await ;
695698 for loc in * inactivity_floor..* bounds. end {
@@ -749,7 +752,7 @@ pub(crate) mod test {
749752 D : DbAny < mmr:: Family , Key = Digest , Value = V , Digest = Digest > + Provable < mmr:: Family > ,
750753 <D as Provable < mmr:: Family > >:: Operation : Codec + PartialEq + std:: fmt:: Debug ,
751754 {
752- use crate :: { mmr :: StandardHasher , qmdb:: verify_proof} ;
755+ use crate :: qmdb:: verify_proof;
753756 use commonware_utils:: NZU64 ;
754757
755758 // Add some operations
@@ -779,7 +782,7 @@ pub(crate) mod test {
779782 assert_eq ! ( historical_proof. leaves, regular_proof. leaves) ;
780783 assert_eq ! ( historical_proof. digests, regular_proof. digests) ;
781784 assert_eq ! ( historical_ops, regular_ops) ;
782- let hasher = StandardHasher :: < Sha256 > :: with_bagging ( merkle :: Bagging :: BackwardFold ) ;
785+ let hasher = qmdb :: hasher :: < Sha256 > ( ) ;
783786 assert ! ( verify_proof(
784787 & hasher,
785788 & historical_proof,
@@ -828,7 +831,7 @@ pub(crate) mod test {
828831 D : DbAny < mmr:: Family , Key = Digest , Value = V , Digest = Digest > + Provable < mmr:: Family > ,
829832 <D as Provable < mmr:: Family > >:: Operation : Codec + PartialEq + std:: fmt:: Debug + Clone ,
830833 {
831- use crate :: { mmr :: StandardHasher , qmdb:: verify_proof} ;
834+ use crate :: qmdb:: verify_proof;
832835 use commonware_utils:: NZU64 ;
833836
834837 // Apply two single-write batches and capture the commit-boundary size after the
@@ -858,7 +861,7 @@ pub(crate) mod test {
858861 assert_eq ! ( proof. leaves, historical_op_count) ;
859862 assert_eq ! ( ops. len( ) , expected_ops_len) ;
860863
861- let hasher = StandardHasher :: < Sha256 > :: with_bagging ( merkle :: Bagging :: BackwardFold ) ;
864+ let hasher = qmdb :: hasher :: < Sha256 > ( ) ;
862865
863866 // Changing the proof digests should cause verification to fail
864867 {
0 commit comments