ensure that keccak is called on view spend key, not a possibly pre-sc_reduce32 version of it
- for deriving view secret key
This commit is contained in:
parent
e1555fdf8b
commit
21a3c46a1b
@ -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
|
// 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;
|
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);
|
generate_keys(m_keys.m_account_address.m_view_public_key, m_keys.m_view_secret_key, second, two_random ? false : true);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user