orchard_note_encryption: Use ephemeral_key local

This commit is contained in:
str4d 2021-05-30 21:40:42 +01:00 committed by GitHub
parent 41925bb669
commit 62a176014a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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