diff options
author | warptangent <warptangent@inbox.com> | 2014-12-06 06:55:56 -0800 |
---|---|---|
committer | warptangent <warptangent@inbox.com> | 2014-12-08 21:57:03 -0800 |
commit | 26b87dfdc28728aaafc92f28871888a64048c30b (patch) | |
tree | 4cc37fb82f7e108d1bd253ed58959d0c65faa357 /src/wallet/wallet2.h | |
parent | version bump to 0.8.8.6 (diff) | |
download | monero-26b87dfdc28728aaafc92f28871888a64048c30b.tar.xz |
Add wallet2::verify_password method
Allows wallet password to be verified without changing wallet state.
Diffstat (limited to '')
-rw-r--r-- | src/wallet/wallet2.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h index f22c5d79d..5486efb0e 100644 --- a/src/wallet/wallet2.h +++ b/src/wallet/wallet2.h @@ -153,6 +153,11 @@ namespace tools void rewrite(const std::string& wallet_name, const std::string& password); void load(const std::string& wallet, const std::string& password); void store(); + + /*! + * \brief verifies given password is correct for default wallet keys file + */ + bool verify_password(const std::string& password); cryptonote::account_base& get_account(){return m_account;} // upper_transaction_size_limit as defined below is set to |