diff options
| author | Riccardo Spagni <ric@spagni.net> | 2017-08-15 20:46:09 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2017-08-15 20:46:09 +0200 |
| commit | 4c24eb050bd549341fdb7bcde37d0d2f121a879a (patch) | |
| tree | a673b72180fd08587a91d4c1afcbc79f8e34a6e7 /src/wallet/wallet2_api.h | |
| parent | 1cf4665d2abd9ec86e5cd09cc9262c36b89cc04b (diff) | |
| parent | ad4649ac81f4539e87b17eb7907e0553c7e11098 (diff) | |
| download | monzero-core-4c24eb050bd549341fdb7bcde37d0d2f121a879a.tar.gz monzero-core-4c24eb050bd549341fdb7bcde37d0d2f121a879a.tar.xz monzero-core-4c24eb050bd549341fdb7bcde37d0d2f121a879a.zip | |
Merge pull request #2238
ad4649ac Enable verifying wallet password with having to load wallet. (m2049r)
Diffstat (limited to 'src/wallet/wallet2_api.h')
| -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 ce431ee6b..b7483ef8c 100644 --- a/src/wallet/wallet2_api.h +++ b/src/wallet/wallet2_api.h @@ -669,11 +669,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); |
