Skip to content

Commit 6be6062

Browse files
committed
Make MerkleTree Clone-able
1 parent 7e6d234 commit 6be6062

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/merkle_tree/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ impl<P: Config> Path<P> {
124124
/// For this release, padding will not be supported because of security concerns: if the leaf hash and two to one hash uses same underlying
125125
/// CRH, a malicious prover can prove a leaf while the actual node is an inner node. In the future, we can prefix leaf hashes in different layers to
126126
/// solve the problem.
127+
#[derive(Clone)]
127128
pub struct MerkleTree<P: Config> {
128129
/// stores the non-leaf nodes in level order. The first element is the root node.
129130
/// The ith nodes (starting at 1st) children are at indices `2*i`, `2*i+1`

0 commit comments

Comments
 (0)