mirror of
https://github.com/monero-project/monero.git
synced 2025-08-23 09:45:08 -04:00
Restructured language sources to be singletons
This commit is contained in:
parent
6c3b85de21
commit
4517bac7f3
13 changed files with 9801 additions and 9878 deletions
|
@ -88,7 +88,7 @@ void wallet2::init(const std::string& daemon_address, uint64_t upper_transaction
|
|||
//----------------------------------------------------------------------------------------------------
|
||||
bool wallet2::get_seed(std::string& electrum_words)
|
||||
{
|
||||
crypto::ElectrumWords::bytes_to_words(get_account().get_keys().m_spend_secret_key, electrum_words);
|
||||
crypto::ElectrumWords::bytes_to_words(get_account().get_keys().m_spend_secret_key, electrum_words, seed_language);
|
||||
|
||||
crypto::secret_key second;
|
||||
keccak((uint8_t *)&get_account().get_keys().m_spend_secret_key, sizeof(crypto::secret_key), (uint8_t *)&second, sizeof(crypto::secret_key));
|
||||
|
@ -97,6 +97,13 @@ bool wallet2::get_seed(std::string& electrum_words)
|
|||
|
||||
return memcmp(second.data,get_account().get_keys().m_view_secret_key.data, sizeof(crypto::secret_key)) == 0;
|
||||
}
|
||||
/*!
|
||||
* \brief Sets the seed language
|
||||
*/
|
||||
void wallet2::set_seed_language(const std::string &language)
|
||||
{
|
||||
seed_language = language;
|
||||
}
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
void wallet2::process_new_transaction(const cryptonote::transaction& tx, uint64_t height)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue