We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdfca8e commit 353e994Copy full SHA for 353e994
src/group.rs
@@ -47,7 +47,6 @@ pub struct Group {
47
/// Hashed LeanIMT
48
pub tree: HashedLeanIMT<ELEMENT_SIZE, PoseidonHash>,
49
}
50
-pub type MerkleProof = LeanIMTMerkleProof;
51
52
impl Group {
53
/// Creates a new instance of the Group with optional initial members
src/proof.rs
@@ -1,5 +1,5 @@
1
use crate::{
2
- group::{Group, MerkleProof},
+ group::{Group, MerkleProof, EMPTY_LEAF},
3
identity::Identity,
4
utils::{hash, to_big_uint},
5
MAX_TREE_DEPTH, MIN_TREE_DEPTH,
@@ -91,7 +91,7 @@ impl Proof {
91
if let Some(sibling) = merkle_proof.siblings.get(i as usize) {
92
merkle_proof_siblings.push(sibling.clone());
93
} else {
94
- merkle_proof_siblings.push("0".to_string());
+ merkle_proof_siblings.push(EMPTY_LEAF.to_string());
95
96
97
0 commit comments