feat: add Clone derive to PartialMmr
Bobbin Threadbare bobbinth@protonmail.com
Thu, 21 Dec 2023 01:24:20 -0800
2 files changed,
2 insertions(+),
2 deletions(-)
M
src/merkle/mmr/partial.rs
→
src/merkle/mmr/partial.rs
@@ -17,7 +17,7 @@ /// authentication paths for a subset of the elements in a full MMR.
/// /// This structure store only the authentication path for a value, the value itself is stored /// separately. -#[derive(Debug)] +#[derive(Debug, Clone, PartialEq, Eq)] pub struct PartialMmr { /// The version of the MMR. ///
M
src/merkle/mmr/peaks.rs
→
src/merkle/mmr/peaks.rs
@@ -6,7 +6,7 @@
// MMR PEAKS // ================================================================================================ -#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Clone, PartialEq, Eq)] #[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))] pub struct MmrPeaks { /// The number of leaves is used to differentiate MMRs that have the same number of peaks. This