Browse Source

feat: add Clone derive to PartialMmr

al-gkr-basic-workflow
Bobbin Threadbare 1 year ago
parent
commit
9fb41337ec
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/merkle/mmr/partial.rs
  2. +1
    -1
      src/merkle/mmr/peaks.rs

+ 1
- 1
src/merkle/mmr/partial.rs

@ -17,7 +17,7 @@ use crate::{
/// ///
/// This structure store only the authentication path for a value, the value itself is stored /// This structure store only the authentication path for a value, the value itself is stored
/// separately. /// separately.
#[derive(Debug)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct PartialMmr { pub struct PartialMmr {
/// The version of the MMR. /// The version of the MMR.
/// ///

+ 1
- 1
src/merkle/mmr/peaks.rs

@ -6,7 +6,7 @@ use super::{
// MMR PEAKS // MMR PEAKS
// ================================================================================================ // ================================================================================================
#[derive(Debug, Clone, PartialEq)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))] #[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
pub struct MmrPeaks { pub struct MmrPeaks {
/// The number of leaves is used to differentiate MMRs that have the same number of peaks. This /// The number of leaves is used to differentiate MMRs that have the same number of peaks. This

Loading…
Cancel
Save