From e4fe8bb32034f4ec14989cc07a13422323205126 Mon Sep 17 00:00:00 2001 From: Deirdre Connolly Date: Thu, 18 Mar 2021 10:25:25 -0400 Subject: [PATCH] Update zebra-chain/src/orchard/note/nullifiers.rs Co-authored-by: teor --- zebra-chain/src/orchard/note/nullifiers.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zebra-chain/src/orchard/note/nullifiers.rs b/zebra-chain/src/orchard/note/nullifiers.rs index 592fb81a..6da56fd1 100644 --- a/zebra-chain/src/orchard/note/nullifiers.rs +++ b/zebra-chain/src/orchard/note/nullifiers.rs @@ -62,9 +62,8 @@ impl From<(NullifierDerivingKey, Note, NoteCommitment)> for Nullifier { /// https://zips.z.cash/protocol/nu5.pdf#commitmentsandnullifiers #[allow(non_snake_case)] fn from((nk, note, cm): (NullifierDerivingKey, Note, NoteCommitment)) -> Self { - // TODO: fill this in (K^Orchard) from the spec when defined: // https://zips.z.cash/protocol/nu5.pdf#commitmentsandnullifiers - let K = pallas_group_hash(b"Zcash_P_", b""); + let K = pallas_group_hash(b"z.cash:Orchard", b"K"); // impl Add for pallas::Base reduces by the modulus (q_P) //