diff --git a/base_layer/mmr/src/balanced_binary_merkle_tree.rs b/base_layer/mmr/src/balanced_binary_merkle_tree.rs index 1a0880a8d1..e534773189 100644 --- a/base_layer/mmr/src/balanced_binary_merkle_tree.rs +++ b/base_layer/mmr/src/balanced_binary_merkle_tree.rs @@ -23,6 +23,7 @@ use std::{convert::TryFrom, marker::PhantomData}; use digest::Digest; +use serde::{Deserialize, Serialize}; use tari_common::DomainDigest; use thiserror::Error; @@ -46,7 +47,7 @@ pub enum BalancedBinaryMerkleTreeError { // Because this implementation relies on the caller to hash leaf nodes, it is possible to instantiate a tree that is /// susceptible to second-preimage attacks. The caller _must_ ensure that the hashers used to pre-hash leaf nodes and /// instantiate the tree cannot produce collisions. -#[derive(Debug)] +#[derive(Debug, Serialize, Deserialize)] pub struct BalancedBinaryMerkleTree { hashes: Vec, _phantom: PhantomData,