diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp index 6a650a69a..7f7fc7663 100644 --- a/src/wallet/api/wallet.cpp +++ b/src/wallet/api/wallet.cpp @@ -816,54 +816,6 @@ bool WalletImpl::storeTxInfo() const return m_wallet->store_tx_info(); } -bool WalletImpl::getPolyseed(std::string &seed_words, std::string &passphrase) const -{ - epee::wipeable_string seed_words_epee(seed_words.c_str(), seed_words.size()); - epee::wipeable_string passphrase_epee(passphrase.c_str(), passphrase.size()); - clearStatus(); - - if (!m_wallet) { - return false; - } - - bool result = m_wallet->get_polyseed(seed_words_epee, passphrase_epee); - - seed_words.assign(seed_words_epee.data(), seed_words_epee.size()); - passphrase.assign(passphrase_epee.data(), passphrase_epee.size()); - - return result; -} - -std::vector> Wallet::getPolyseedLanguages() - { - std::vector> languages; - - auto langs = polyseed::get_langs(); - for (const auto &lang : langs) { - languages.emplace_back(std::pair(lang.name_en(), lang.name())); - } - - return languages; -} - -bool Wallet::createPolyseed(std::string &seed_words, std::string &err, const std::string &language) -{ - epee::wipeable_string seed_words_epee(seed_words.c_str(), seed_words.size()); - - try { - polyseed::data polyseed(POLYSEED_COIN); - polyseed.create(0); - polyseed.encode(polyseed::get_lang_by_name(language), seed_words_epee); - - seed_words.assign(seed_words_epee.data(), seed_words_epee.size()); - } - catch (const std::exception &e) { - err = e.what(); - return false; - } - - return true; -} std::string WalletImpl::getSeedLanguage() const { return m_wallet->get_seed_language(); diff --git a/src/wallet/api/wallet.h b/src/wallet/api/wallet.h index 50d6841c0..2d77a5030 100644 --- a/src/wallet/api/wallet.h +++ b/src/wallet/api/wallet.h @@ -83,7 +83,6 @@ public: Device getDeviceType() const override; bool close(bool store = true); std::string seed(const std::string& seed_offset = "") const override; - bool getPolyseed(std::string &seed_words, std::string &passphrase) const override; void setStoreTxInfo(bool store) override; bool storeTxInfo() const override; std::string getSeedLanguage() const override;