arnaucube
arnaucube/miden-cryptoPublic Self-hosted repository
feat: add Clone derive to PartialMmr
Bobbin Threadbare bobbinth@protonmail.com
Thu, 21 Dec 2023 01:24:20 -0800
commit

be1d631630acab6451afb4a12e66a114891d8992

parent

4d0d8d305879b1531e3e0b0ff1b8a9421803113b

2 files changed, 2 insertions(+), 2 deletions(-)

jump to
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