aboutsummaryrefslogtreecommitdiff
path: root/src/device/device_default.hpp
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.hpp
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.hpp')
-rw-r--r--src/device/device_default.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/device/device_default.hpp b/src/device/device_default.hpp
index 04b9b4234..cac4b784c 100644
--- a/src/device/device_default.hpp
+++ b/src/device/device_default.hpp
@@ -111,6 +111,8 @@ namespace hw {
bool encrypt_payment_id(crypto::hash8 &payment_id, const crypto::public_key &public_key, const crypto::secret_key &secret_key) override;
+ rct::key genCommitmentMask(const rct::key &amount_key) override;
+
bool ecdhEncode(rct::ecdhTuple & unmasked, const rct::key & sharedSec, bool short_amount) override;
bool ecdhDecode(rct::ecdhTuple & masked, const rct::key & sharedSec, bool short_amount) override;