diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-10-30 19:37:09 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-10-30 19:37:09 +0000 |
commit | bb560dd814072fb34578b8fda0da34304fff5c7b (patch) | |
tree | 65cc25a16ffd93fc8c273947f4d2c406393db806 /src/wallet/wallet2.h | |
parent | Merge pull request #1270 (diff) | |
download | monero-bb560dd814072fb34578b8fda0da34304fff5c7b.tar.xz |
wallet: new import_outputs/export_outputs commands
The intended use is to export outputs from a hot wallet, which
can scan incoming transfers from the network, and import them
in the cold wallet, which can't. The cold wallet can then compute
key images for those outputs, which can then be exported with
export_key_images, etc.
Diffstat (limited to '')
-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 39a2a37f1..8afe35aca 100644 --- a/src/wallet/wallet2.h +++ b/src/wallet/wallet2.h @@ -473,6 +473,9 @@ namespace tools std::string sign(const std::string &data) const; bool verify(const std::string &data, const cryptonote::account_public_address &address, const std::string &signature) const; + std::vector<tools::wallet2::transfer_details> export_outputs() const; + size_t import_outputs(const std::vector<tools::wallet2::transfer_details> &outputs); + std::vector<std::pair<crypto::key_image, crypto::signature>> export_key_images() const; uint64_t import_key_images(const std::vector<std::pair<crypto::key_image, crypto::signature>> &signed_key_images, uint64_t &spent, uint64_t &unspent); |