summaryrefslogtreecommitdiffstats
path: root/src/node.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/node.rs')
-rw-r--r--src/node.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/node.rs b/src/node.rs
index 90481d0..e7e6b0f 100644
--- a/src/node.rs
+++ b/src/node.rs
@@ -1,5 +1,14 @@
//! Contains node definitions for Merkle trees, including leaf and internal node structures.
+/// Enum representing the type of the node child.
+#[derive(Debug, Clone)]
+pub enum NodeChildType {
+ /// Left child
+ Left,
+ /// Right child
+ Right,
+}
+
/// Enum representing the type of a Merkle tree node.
#[derive(Clone)]
pub enum NodeStatus {