mirror of
https://github.com/monero-project/monero.git
synced 2024-12-12 23:04:25 -05:00
wallet_api: add seed_offset param to seed()
This commit is contained in:
parent
73959c623c
commit
def58196da
@ -791,11 +791,11 @@ bool WalletImpl::close(bool store)
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string WalletImpl::seed() const
|
std::string WalletImpl::seed(const std::string& seed_offset) const
|
||||||
{
|
{
|
||||||
epee::wipeable_string seed;
|
epee::wipeable_string seed;
|
||||||
if (m_wallet)
|
if (m_wallet)
|
||||||
m_wallet->get_seed(seed);
|
m_wallet->get_seed(seed, seed_offset);
|
||||||
return std::string(seed.data(), seed.size()); // TODO
|
return std::string(seed.data(), seed.size()); // TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ public:
|
|||||||
const std::string &device_name);
|
const std::string &device_name);
|
||||||
Device getDeviceType() const override;
|
Device getDeviceType() const override;
|
||||||
bool close(bool store = true);
|
bool close(bool store = true);
|
||||||
std::string seed() const override;
|
std::string seed(const std::string& seed_offset = "") const override;
|
||||||
std::string getSeedLanguage() const override;
|
std::string getSeedLanguage() const override;
|
||||||
void setSeedLanguage(const std::string &arg) override;
|
void setSeedLanguage(const std::string &arg) override;
|
||||||
// void setListener(Listener *) {}
|
// void setListener(Listener *) {}
|
||||||
|
@ -446,7 +446,7 @@ struct Wallet
|
|||||||
};
|
};
|
||||||
|
|
||||||
virtual ~Wallet() = 0;
|
virtual ~Wallet() = 0;
|
||||||
virtual std::string seed() const = 0;
|
virtual std::string seed(const std::string& seed_offset = "") const = 0;
|
||||||
virtual std::string getSeedLanguage() const = 0;
|
virtual std::string getSeedLanguage() const = 0;
|
||||||
virtual void setSeedLanguage(const std::string &arg) = 0;
|
virtual void setSeedLanguage(const std::string &arg) = 0;
|
||||||
//! returns wallet status (Status_Ok | Status_Error)
|
//! returns wallet status (Status_Ok | Status_Error)
|
||||||
|
Loading…
Reference in New Issue
Block a user