Skip to content

Commit

Permalink
Clarify spend to use in pczt::Output::verify_note_commitment
Browse files Browse the repository at this point in the history
Co-authored-by: Daira-Emma Hopwood <daira@jacaranda.org>
  • Loading branch information
str4d and daira authored Dec 13, 2024
1 parent 3a5e66f commit 9b99350
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pczt/verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?,
Expand Down

0 comments on commit 9b99350

Please sign in to comment.