Extract check for deterministic keys to wallet2::is_deterministic()

It's cleaner for wallet2.cpp and it also allows deterministic check by
simplewallet.cpp.
This commit is contained in:
warptangent
2014-12-06 01:59:13 -08:00
parent 359ede3958
commit 1beedb9dd4
2 changed files with 20 additions and 6 deletions

View File

@@ -168,6 +168,10 @@ namespace tools
i_wallet2_callback* callback() const { return m_callback; }
void callback(i_wallet2_callback* callback) { m_callback = callback; }
/*!
* \brief Checks if deterministic wallet
*/
bool is_deterministic();
bool get_seed(std::string& electrum_words);
/*!
* \brief Gets the seed language