Skip to content

Commit

Permalink
Renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
ConstanceBeguier committed Jun 22, 2023
1 parent cd4975d commit 6e5a371
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/note/nullifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,13 @@ impl Nullifier {
let k = pallas::Point::hash_to_curve("z.cash:Orchard")(b"K");
let l = pallas::Point::hash_to_curve("z.cash:Orchard")(b"L");

let nullifier_point = k * mod_r_p(nk.prf_nf(rho) + psi) + cm.0;
let nullifier_point_for_split_note = nullifier_point + l;
let nullifier = k * mod_r_p(nk.prf_nf(rho) + psi) + cm.0;
let nullifier_for_split_note = nullifier + l;

let selected_nullifier_point = pallas::Point::conditional_select(
&nullifier_point,
&nullifier_point_for_split_note,
is_split_note,
);
let selected_nullifier =
pallas::Point::conditional_select(&nullifier, &nullifier_for_split_note, is_split_note);

Nullifier(extract_p(&(selected_nullifier_point)))
Nullifier(extract_p(&(selected_nullifier)))
}
}

Expand Down

0 comments on commit 6e5a371

Please sign in to comment.