mirror of
https://github.com/monero-project/monero.git
synced 2026-07-31 08:00:31 -07:00
wallet: allow signing a message with spend or view key
This commit is contained in:
committed by
Sarang Noether
parent
5946002105
commit
743608ec16
@@ -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 */
|
||||
/* ======================================================================= */
|
||||
|
||||
Reference in New Issue
Block a user