From ebf97d76f0020eb027175818ebbdafd6d578aa77 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Fri, 15 Jul 2016 12:11:55 +0100 Subject: wallet: new {ex,im}port_key_images commands and RPC calls They are used to export a signed set of key images from a wallet with a private spend key, so an auditor with the matching view key may see which of those are spent, and which are not. --- src/wallet/wallet2.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/wallet/wallet2.h') diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h index de3580777..62a3c5031 100644 --- a/src/wallet/wallet2.h +++ b/src/wallet/wallet2.h @@ -394,8 +394,10 @@ 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; - void update_pool_state(); + std::vector> export_key_images() const; + uint64_t import_key_images(const std::vector> &signed_key_images, uint64_t &spent, uint64_t &unspent); + void update_pool_state(); private: /*! * \brief Stores wallet information to wallet file. -- cgit v1.2.3