Skip to content

Commit

Permalink
pczt: Document how expected_fvk is used by Spend::verify_nullifier
Browse files Browse the repository at this point in the history
  • Loading branch information
str4d committed Dec 17, 2024
1 parent fe389a1 commit 762bc40
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pczt/verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ impl super::Spend {
/// - `rho`
/// - `rseed`
///
/// In addition, at least one of the `fvk` field or `expected_fvk` must be provided.
///
/// The provided [`FullViewingKey`] is ignored if the spent note is a dummy note.
/// Otherwise, it will be checked against the `fvk` field (if set).
/// Otherwise, it will be checked against the `fvk` field (if both are set).
pub fn verify_nullifier(
&self,
expected_fvk: Option<&FullViewingKey>,
Expand Down

0 comments on commit 762bc40

Please sign in to comment.