feat: remove clone requirement for MerkleStore From constructors

This commit is contained in:
Bobbin Threadbare
2023-04-21 11:22:36 -07:00
parent 59595a2e04
commit 9be4253f19
4 changed files with 40 additions and 29 deletions

View File

@@ -192,6 +192,9 @@ impl<'a> Iterator for MerkleTreeNodes<'a> {
}
}
// UTILITY FUNCTIONS
// ================================================================================================
/// Utility to visualize a [MerkleTree] in text.
pub fn tree_to_text(tree: &MerkleTree) -> Result<String, fmt::Error> {
let indent = " ";