From 9b99350b38f309676a85bb2779bb9173b42b398e Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Fri, 13 Dec 2024 07:48:38 +0000 Subject: [PATCH] Clarify spend to use in `pczt::Output::verify_note_commitment` Co-authored-by: Daira-Emma Hopwood --- src/pczt/verify.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pczt/verify.rs b/src/pczt/verify.rs index 721a93e6d..1b16608ee 100644 --- a/src/pczt/verify.rs +++ b/src/pczt/verify.rs @@ -119,6 +119,8 @@ impl super::Output { /// - `recipient` /// - `value` /// - `rseed` + /// + /// `spend` must be the Spend from the same Orchard action. pub fn verify_note_commitment(&self, spend: &super::Spend) -> Result<(), VerifyError> { let note = Note::from_parts( self.recipient.ok_or(VerifyError::MissingRecipient)?,