aboutsummaryrefslogtreecommitdiff
path: root/src/device/device_default.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-05-20 21:43:09 +0000
committerSarang Noether <32460187+SarangNoether@users.noreply.github.com>2020-08-28 19:25:17 -0400
commit743608ec16e27a3c1ca2febd4e80391a32c23efd (patch)
treed8b4f65cc302f765f7fd97aca7ef6189065307e3 /src/device/device_default.cpp
parentMerge pull request #6787 (diff)
downloadmonero-743608ec16e27a3c1ca2febd4e80391a32c23efd.tar.xz
wallet: allow signing a message with spend or view key
Diffstat (limited to 'src/device/device_default.cpp')
-rw-r--r--src/device/device_default.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/device/device_default.cpp b/src/device/device_default.cpp
index 145197212..cb63deb15 100644
--- a/src/device/device_default.cpp
+++ b/src/device/device_default.cpp
@@ -207,6 +207,12 @@ namespace hw {
return m;
}
+ crypto::secret_key device_default::get_subaddress_view_secret_key(const crypto::secret_key &a, const cryptonote::subaddress_index &index) {
+ crypto::secret_key skey = get_subaddress_secret_key(a, index);
+ sc_mul((unsigned char*)skey.data, (const unsigned char*)skey.data, (const unsigned char*)a.data);
+ return skey;
+ }
+
/* ======================================================================= */
/* DERIVATION & KEY */
/* ======================================================================= */