arnaucube
arnaucube/miden-cryptoPublic Self-hosted repository
chore: clarified assert message
Augusto F. Hack hack.augusto@gmail.com
Wed, 22 Mar 2023 11:30:19 +0100
commit

d6cbd178e1e41a6d313d3e93596a3f0652eadda7

parent

7305a72295367c4fbc0a02b0c6a82b8c0702f4e4

1 files changed, 4 insertions(+), 1 deletions(-)

jump to
M src/merkle/merkle_tree.rs → src/merkle/merkle_tree.rs

@@ -108,7 +108,10 @@ path.push(self.nodes[sibling]);

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()) }