From 6956c18d31606a795074fba50eccba57571ab137 Mon Sep 17 00:00:00 2001 From: Hazel OHearn Date: Thu, 23 Jun 2022 16:06:37 -0300 Subject: [PATCH] Add CompactAction::nullifier getter fn --- src/note_encryption.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/note_encryption.rs b/src/note_encryption.rs index 9ef73c26..2da2583a 100644 --- a/src/note_encryption.rs +++ b/src/note_encryption.rs @@ -327,6 +327,11 @@ impl CompactAction { enc_ciphertext, } } + + ///Returns the nullifier of the note being spent. + pub fn nullifier(&self) -> Nullifier { + self.nullifier + } } #[cfg(test)]