diff options
author | Lee Clagett <code@leeclagett.com> | 2016-12-17 18:07:15 -0500 |
---|---|---|
committer | Lee Clagett <code@leeclagett.com> | 2016-12-19 20:00:43 -0500 |
commit | 2bddb8ebee4b25f2f73e6476dd1019459d8a1aca (patch) | |
tree | cc1edfe5d2b0ff388f68db03ce82bcec71ee201a /src/wallet/wallet2.h | |
parent | Merge pull request #1464 (diff) | |
download | monero-2bddb8ebee4b25f2f73e6476dd1019459d8a1aca.tar.xz |
Refactored password prompting for wallets
Diffstat (limited to 'src/wallet/wallet2.h')
-rw-r--r-- | src/wallet/wallet2.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h index c3381730b..40c339e67 100644 --- a/src/wallet/wallet2.h +++ b/src/wallet/wallet2.h @@ -104,6 +104,9 @@ namespace tools static bool has_testnet_option(const boost::program_options::variables_map& vm); static void init_options(boost::program_options::options_description& desc_params); + //! \return Password retrieved from prompt. Logs error on failure. + static boost::optional<password_container> password_prompt(const bool is_new_wallet); + //! Uses stdin and stdout. Returns a wallet2 if no errors. static std::unique_ptr<wallet2> make_from_json(const boost::program_options::variables_map& vm, const std::string& json_file); |