mirror of
https://github.com/arnaucube/miden-crypto.git
synced 2026-01-12 00:51:29 +01:00
feature: add conditional support for serde
This commit is contained in:
@@ -8,6 +8,7 @@ use winter_math::log2;
|
||||
|
||||
/// A fully-balanced binary Merkle tree (i.e., a tree where the number of leaves is a power of two).
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
|
||||
pub struct MerkleTree {
|
||||
nodes: Vec<RpoDigest>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user