From 62a176014ab5db9a01caf408e736a9ba8cf2ccc2 Mon Sep 17 00:00:00 2001 From: str4d Date: Sun, 30 May 2021 21:40:42 +0100 Subject: [PATCH] orchard_note_encryption: Use ephemeral_key local --- orchard_note_encryption.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orchard_note_encryption.py b/orchard_note_encryption.py index 6584721..9533de5 100644 --- a/orchard_note_encryption.py +++ b/orchard_note_encryption.py @@ -155,7 +155,7 @@ class TransmittedNoteCipherText(object): # in Sapling decryption before ZIP 216, but the reverse is okay here # because Pallas points have no non-canonical encodings. ephemeral_key = bytes(self.epk) - ock = prf_ock_orchard(ovk, bytes(cv), bytes(cm_star), bytes(self.epk)) + ock = prf_ock_orchard(ovk, bytes(cv), bytes(cm_star), ephemeral_key) op = OrchardSym.decrypt(ock, self.c_out) if op is None: return None