feature: add conditional support for serde

This commit is contained in:
Augusto F. Hack
2023-08-08 17:04:25 +02:00
parent 03f89f0aff
commit 8cf5e9fd2c
18 changed files with 204 additions and 14 deletions

View File

@@ -3,6 +3,7 @@ use super::super::MerklePath;
use super::full::{high_bitmask, leaf_to_corresponding_tree};
#[derive(Debug, Clone, PartialEq)]
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
pub struct MmrProof {
/// The state of the MMR when the MmrProof was created.
pub forest: usize,