diff options
author | m2049r <30435443+m2049r@users.noreply.github.com> | 2017-08-02 00:41:05 +0200 |
---|---|---|
committer | m2049r <30435443+m2049r@users.noreply.github.com> | 2017-08-03 01:45:45 +0200 |
commit | ad4649ac81f4539e87b17eb7907e0553c7e11098 (patch) | |
tree | 126baebd2efb27d49e24a37ecdca03bc821f4a9d /src/wallet/wallet2_api.h | |
parent | Merge pull request #2159 (diff) | |
download | monero-ad4649ac81f4539e87b17eb7907e0553c7e11098.tar.xz |
Enable verifying wallet password with having to load wallet.
Diffstat (limited to '')
-rw-r--r-- | src/wallet/wallet2_api.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h index a136954f0..ab2da70d7 100644 --- a/src/wallet/wallet2_api.h +++ b/src/wallet/wallet2_api.h @@ -662,11 +662,20 @@ struct WalletManager /*! * @brief TODO: delme walletExists - check if the given filename is the wallet * @param path - filename - * @return + * @return - true if wallet exists */ virtual bool walletExists(const std::string &path) = 0; /*! + * @brief verifyWalletPassword - check if the given filename is the wallet + * @param keys_file_name - location of keys file + * @param password - password to verify + * @param watch_only - verify only view keys? + * @return - true if password is correct + */ + virtual bool verifyWalletPassword(const std::string &keys_file_name, const std::string &password, bool watch_only) const = 0; + + /*! * \brief findWallets - searches for the wallet files by given path name recursively * \param path - starting point to search * \return - list of strings with found wallets (absolute paths); |