We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
MerkleTree
Clone
1 parent 7e6d234 commit 6be6062Copy full SHA for 6be6062
src/merkle_tree/mod.rs
@@ -124,6 +124,7 @@ impl<P: Config> Path<P> {
124
/// For this release, padding will not be supported because of security concerns: if the leaf hash and two to one hash uses same underlying
125
/// 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
126
/// solve the problem.
127
+#[derive(Clone)]
128
pub struct MerkleTree<P: Config> {
129
/// stores the non-leaf nodes in level order. The first element is the root node.
130
/// The ith nodes (starting at 1st) children are at indices `2*i`, `2*i+1`
0 commit comments