aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/account.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2014-12-02 07:34:27 +0200
committerRiccardo Spagni <ric@spagni.net>2014-12-02 07:34:56 +0200
commitef2a2b42c9e710d1455fd2983e82bfe930c7101f (patch)
treef0efce8bb8045061b32895f04bf0fed79a249873 /src/cryptonote_core/account.cpp
parentMerge pull request #187 (diff)
parentremove unused display variable (diff)
downloadmonero-ef2a2b42c9e710d1455fd2983e82bfe930c7101f.tar.xz
Merge pull request #186
3300ae5 remove unused display variable (warptangent) 0e0e557 return true on success (warptangent) 2e11eb1 deterministic wallet use of twelve words fixed (warptangent) 21a3c46 ensure that keccak is called on view spend key, not a possibly pre-sc_reduce32 version of it - for deriving view secret key (warptangent)
Diffstat (limited to 'src/cryptonote_core/account.cpp')
-rw-r--r--src/cryptonote_core/account.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_core/account.cpp b/src/cryptonote_core/account.cpp
index 36043238d..9f6c91026 100644
--- a/src/cryptonote_core/account.cpp
+++ b/src/cryptonote_core/account.cpp
@@ -65,7 +65,7 @@ DISABLE_VS_WARNINGS(4244 4345)
// rng for generating second set of keys is hash of first rng. means only one set of electrum-style words needed for recovery
crypto::secret_key second;
- keccak((uint8_t *)&first, sizeof(crypto::secret_key), (uint8_t *)&second, sizeof(crypto::secret_key));
+ keccak((uint8_t *)&m_keys.m_spend_secret_key, sizeof(crypto::secret_key), (uint8_t *)&second, sizeof(crypto::secret_key));
generate_keys(m_keys.m_account_address.m_view_public_key, m_keys.m_view_secret_key, second, two_random ? false : true);