summaryrefslogtreecommitdiffstats
path: root/src/proof.rs
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2025-06-16 14:37:43 +0000
committerSanto Cariotti <santo@dcariotti.me>2025-06-16 14:37:43 +0000
commit10b0ddf49d9aabbf37a5139da3ae98e2ef2c6cdd (patch)
tree7fb683ac20d1143b6be8a023529b890773693339 /src/proof.rs
parentbd88ce87928d31d0e569e82eaf760c32aa88dd38 (diff)
Move struct in proper crate
Diffstat (limited to 'src/proof.rs')
-rw-r--r--src/proof.rs14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/proof.rs b/src/proof.rs
index 10eb825..cfc7a0b 100644
--- a/src/proof.rs
+++ b/src/proof.rs
@@ -1,15 +1,9 @@
//! Merkle tree proof and verification implementation
-use crate::{hasher::Hasher, node::Node};
-
-/// Enum representing the type of the node child.
-#[derive(Debug, Clone)]
-pub enum NodeChildType {
- /// Left child
- Left,
- /// Right child
- Right,
-}
+use crate::{
+ hasher::Hasher,
+ node::{Node, NodeChildType},
+};
/// Represents a single step in a Merkle proof path.
#[derive(Debug, Clone)]