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

9fb41337ec1d20699049a510473041a8b0294c98

parent

0296e05ccd8213ecde9c75d21d8c262146438d87

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