diff --git a/components/zcash_note_encryption/src/lib.rs b/components/zcash_note_encryption/src/lib.rs index 6ad10c987..fb8049d40 100644 --- a/components/zcash_note_encryption/src/lib.rs +++ b/components/zcash_note_encryption/src/lib.rs @@ -513,6 +513,8 @@ fn check_note_validity( cmstar_bytes: &D::ExtractedCommitmentBytes, ) -> NoteValidity { if &D::ExtractedCommitmentBytes::from(&D::cmstar(note)) == cmstar_bytes { + // In the case corresponding to specification section 4.19.3, we check that `esk` is equal + // to `D::derive_esk(note)` prior to calling this method. if let Some(derived_esk) = D::derive_esk(note) { if D::epk_bytes(&D::ka_derive_public(note, &derived_esk)) .ct_eq(ephemeral_key) @@ -654,8 +656,9 @@ pub fn try_output_recovery_with_ock