feat: add node iterator to MerkleTree

This commit is contained in:
Augusto F. Hack
2023-03-30 23:51:44 +02:00
parent f46d913b20
commit 1df4318399
4 changed files with 101 additions and 27 deletions

9
src/merkle/node.rs Normal file
View File

@@ -0,0 +1,9 @@
use super::Word;
/// Representation of a node with two children used for iterating over containers.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct InnerNodeInfo {
pub value: Word,
pub left: Word,
pub right: Word,
}