From 26b87dfdc28728aaafc92f28871888a64048c30b Mon Sep 17 00:00:00 2001 From: warptangent Date: Sat, 6 Dec 2014 06:55:56 -0800 Subject: Add wallet2::verify_password method Allows wallet password to be verified without changing wallet state. --- src/wallet/wallet2.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/wallet/wallet2.h') 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 -- cgit v1.2.3