feat: add PartialEq and Eq traits to Merkle structs

This commit is contained in:
Bobbin Threadbare
2022-12-27 19:40:58 -08:00
parent ad2b63ce02
commit 4f65d01df4
3 changed files with 5 additions and 5 deletions

View File

@@ -7,7 +7,7 @@ use winter_math::log2;
// ================================================================================================
/// A fully-balanced binary Merkle tree (i.e., a tree where the number of leaves is a power of two).
#[derive(Clone, Debug)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct MerkleTree {
nodes: Vec<Word>,
}