From 05ade02f2cf56cee6bf98160263ba3b9f0884906 Mon Sep 17 00:00:00 2001 From: 0xKitsune <0xKitsune@protonmail.com> Date: Wed, 29 Nov 2023 15:07:20 -0500 Subject: [PATCH] removed unused message field from InclusionProof --- src/tree/tree_data.rs | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/tree/tree_data.rs b/src/tree/tree_data.rs index 8f7ba352..df29d543 100644 --- a/src/tree/tree_data.rs +++ b/src/tree/tree_data.rs @@ -118,7 +118,6 @@ impl TreeData { return Some(InclusionProof::new( root, Self::proof(&tree, identity)?, - None, )); } else { let tree_history = self.tree_history.read().await; @@ -134,7 +133,6 @@ impl TreeData { return Some(InclusionProof::new( root, Self::proof(prev_tree, identity)?, - None, )); } } @@ -154,7 +152,6 @@ impl TreeData { Some(InclusionProof::new( latest_root, Self::proof(&tree, identity)?, - None, )) } } @@ -182,20 +179,11 @@ pub struct InclusionProof { //TODO: Open a PR to semaphore-rs to deserialize proof instead of implementing deserialization here #[serde(deserialize_with = "deserialize_proof")] pub proof: Proof, - pub message: Option, } impl InclusionProof { - pub fn new( - root: Field, - proof: Proof, - message: Option, - ) -> InclusionProof { - Self { - root, - proof, - message, - } + pub fn new(root: Field, proof: Proof) -> InclusionProof { + Self { root, proof } } }