aboutsummaryrefslogtreecommitdiff
path: root/src/device/device_default.cpp
diff options
context:
space:
mode:
authorcslashm <cslashm@gmail.com>2019-03-05 02:10:28 +0100
committercslashm <cslashm@gmail.com>2019-03-05 22:05:37 +0100
commit470527138a9417af0e895a94dd64e773796612e4 (patch)
treec28589afda64e45afb5f681cc61f822ca238d4f2 /src/device/device_default.cpp
parentMerge pull request #5215 (diff)
downloadmonero-470527138a9417af0e895a94dd64e773796612e4.tar.xz
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.
Diffstat (limited to 'src/device/device_default.cpp')
-rw-r--r--src/device/device_default.cpp4
1 files changed, 4 insertions, 0 deletions
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;