aboutsummaryrefslogtreecommitdiff
path: root/src/device/device_default.cpp
diff options
context:
space:
mode:
authorcslashm <cslashm@gmail.com>2018-03-26 12:55:48 +0200
committercslashm <cslashm@gmail.com>2018-03-31 18:00:33 +0200
commitc77d2bfaa0e0390e421b4d337f49451d504f7046 (patch)
treef9ad2766389b0efe78be3ff2dd9f5f65b7ed0f8f /src/device/device_default.cpp
parentChange mutex lock model to avoid dead lock and ensure locks are always released. (diff)
downloadmonero-c77d2bfaa0e0390e421b4d337f49451d504f7046.tar.xz
Add the possibility to export private view key for fast scan.
On client startup the device asks for authorization to export the private view key. If user agree, the client hold the private view key allowing a fast blockchain scan. If the user does not agree, the blockchain scan is fully done via the device.
Diffstat (limited to 'src/device/device_default.cpp')
-rw-r--r--src/device/device_default.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/device/device_default.cpp b/src/device/device_default.cpp
index fd6d1e5e2..96838a289 100644
--- a/src/device/device_default.cpp
+++ b/src/device/device_default.cpp
@@ -81,6 +81,9 @@ namespace hw {
dfns();
}
+ bool device_default::set_mode(device_mode mode) {
+ return true;
+ }
/* ======================================================================= */
/* LOCKER */
@@ -273,10 +276,6 @@ namespace hw {
return true;
}
- bool device_default::set_signature_mode(unsigned int sig_mode) {
- return true;
- }
-
bool device_default::encrypt_payment_id(crypto::hash8 &payment_id, const crypto::public_key &public_key, const crypto::secret_key &secret_key) {
crypto::key_derivation derivation;
crypto::hash hash;