From 470527138a9417af0e895a94dd64e773796612e4 Mon Sep 17 00:00:00 2001 From: cslashm Date: Tue, 5 Mar 2019 02:10:28 +0100 Subject: Fix computation of change address + Fix v11 fork Always send TX public key when generating output destination keys: it may be an additional TX public key in case of subaddress; before we always use R. Fix the commitment mask generation: It must be delegated to device as it implies the amount key. Send MONERO_VERSION string in reset command to allow version compatibility check. Some enhancement of debug log. --- src/device/device_default.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/device/device_default.cpp') diff --git a/src/device/device_default.cpp b/src/device/device_default.cpp index c6cd7c06b..94bd8a75c 100644 --- a/src/device/device_default.cpp +++ b/src/device/device_default.cpp @@ -349,6 +349,10 @@ namespace hw { return true; } + rct::key device_default::genCommitmentMask(const rct::key &amount_key) { + return rct::genCommitmentMask(amount_key); + } + bool device_default::ecdhEncode(rct::ecdhTuple & unmasked, const rct::key & sharedSec, bool short_amount) { rct::ecdhEncode(unmasked, sharedSec, short_amount); return true; -- cgit v1.2.3