Browse Source
chore: clarified assert message
al-gkr-basic-workflow
Augusto F. Hack
2 years ago
No known key found for this signature in database
GPG Key ID: 3F3584B7FB1DFB76
1 changed files with
4 additions and
1 deletions
-
src/merkle/merkle_tree.rs
|
@ -108,7 +108,10 @@ impl MerkleTree { |
|
|
index.move_up();
|
|
|
index.move_up();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
debug_assert!(index.is_root(), "the path must include the root");
|
|
|
|
|
|
|
|
|
debug_assert!(
|
|
|
|
|
|
index.is_root(),
|
|
|
|
|
|
"the path walk must go all the way to the root"
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
Ok(path.into())
|
|
|
Ok(path.into())
|
|
|
}
|
|
|
}
|
|
|