diff options
author | Jaquee <jaquee.monero@gmail.com> | 2017-01-13 23:00:03 +0100 |
---|---|---|
committer | Jaquee <jaquee.monero@gmail.com> | 2017-01-13 23:02:20 +0100 |
commit | 1d3179816be78240688a0cf05f4040b7fd790a4e (patch) | |
tree | 729c5d39a6087c2dce660d9519ff8a44d6615713 /src/wallet/wallet2_api.h | |
parent | Merge pull request #1562 (diff) | |
download | monero-1d3179816be78240688a0cf05f4040b7fd790a4e.tar.xz |
Wallet API: add key image import/export functions
Diffstat (limited to '')
-rw-r--r-- | src/wallet/wallet2_api.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h index daffb48bf..7ae8eb9c3 100644 --- a/src/wallet/wallet2_api.h +++ b/src/wallet/wallet2_api.h @@ -513,6 +513,21 @@ struct Wallet */ virtual void disposeTransaction(PendingTransaction * t) = 0; + /*! + * \brief exportKeyImages - exports key images to file + * \param filename + * \return - true on success + */ + virtual bool exportKeyImages(const std::string &filename) = 0; + + /*! + * \brief importKeyImages - imports key images from file + * \param filename + * \return - true on success + */ + virtual bool importKeyImages(const std::string &filename) = 0; + + virtual TransactionHistory * history() const = 0; virtual AddressBook * addressBook() const = 0; virtual void setListener(WalletListener *) = 0; |