diff options
| author | Riccardo Spagni <ric@spagni.net> | 2018-09-21 20:31:04 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2018-09-21 20:31:04 +0200 |
| commit | 90d1a00c1080876edb629ce86aadc8df023ce05f (patch) | |
| tree | cfe28c3ad09845eb211e9f18ec9f1535666f2c4f /src/wallet/api/wallet_manager.cpp | |
| parent | bb3ff2bb36ed0aa7927690d7f0ee40dc212d2a2b (diff) | |
| parent | bce474be7d9cfa80d9f0970047bfd508db60424f (diff) | |
| download | monzero-core-90d1a00c1080876edb629ce86aadc8df023ce05f.tar.gz monzero-core-90d1a00c1080876edb629ce86aadc8df023ce05f.tar.xz monzero-core-90d1a00c1080876edb629ce86aadc8df023ce05f.zip | |
Merge pull request #4266
bce474be query backing device (m2049r)
Diffstat (limited to 'src/wallet/api/wallet_manager.cpp')
| -rw-r--r-- | src/wallet/api/wallet_manager.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wallet/api/wallet_manager.cpp b/src/wallet/api/wallet_manager.cpp index 3851ca9cc..5b262f1b7 100644 --- a/src/wallet/api/wallet_manager.cpp +++ b/src/wallet/api/wallet_manager.cpp @@ -167,6 +167,14 @@ bool WalletManagerImpl::verifyWalletPassword(const std::string &keys_file_name, return tools::wallet2::verify_password(keys_file_name, password, no_spend_key, hw::get_device("default"), kdf_rounds); } +bool WalletManagerImpl::queryWalletDevice(Wallet::Device& device_type, const std::string &keys_file_name, const std::string &password, uint64_t kdf_rounds) const +{ + hw::device::device_type type; + bool r = tools::wallet2::query_device(type, keys_file_name, password, kdf_rounds); + device_type = static_cast<Wallet::Device>(type); + return r; +} + std::vector<std::string> WalletManagerImpl::findWallets(const std::string &path) { std::vector<std::string> result; |
