aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet_rpc_server_commands_defs.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-07-26 08:55:25 +0200
committerRiccardo Spagni <ric@spagni.net>2016-07-26 08:55:25 +0200
commitb34506da81ed7d53c0a11cc30f6eb349fe2ca48c (patch)
tree4cd4132d8c1c57e89f8c4f417c2e078b6d9e5d44 /src/wallet/wallet_rpc_server_commands_defs.h
parentMerge pull request #931 (diff)
parentwallet: new {ex,im}port_key_images commands and RPC calls (diff)
downloadmonero-b34506da81ed7d53c0a11cc30f6eb349fe2ca48c.tar.xz
Merge pull request #928
ebf97d7 wallet: new {ex,im}port_key_images commands and RPC calls (moneromooo-monero)
Diffstat (limited to 'src/wallet/wallet_rpc_server_commands_defs.h')
-rw-r--r--src/wallet/wallet_rpc_server_commands_defs.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/src/wallet/wallet_rpc_server_commands_defs.h b/src/wallet/wallet_rpc_server_commands_defs.h
index f4eefcd1a..d7f01d9ee 100644
--- a/src/wallet/wallet_rpc_server_commands_defs.h
+++ b/src/wallet/wallet_rpc_server_commands_defs.h
@@ -601,5 +601,70 @@ namespace wallet_rpc
};
};
+ struct COMMAND_RPC_EXPORT_KEY_IMAGES
+ {
+ struct request
+ {
+ BEGIN_KV_SERIALIZE_MAP()
+ END_KV_SERIALIZE_MAP()
+ };
+
+ struct signed_key_image
+ {
+ std::string key_image;
+ std::string signature;
+
+ BEGIN_KV_SERIALIZE_MAP()
+ KV_SERIALIZE(key_image);
+ KV_SERIALIZE(signature);
+ END_KV_SERIALIZE_MAP()
+ };
+
+ struct response
+ {
+ std::vector<signed_key_image> signed_key_images;
+
+ BEGIN_KV_SERIALIZE_MAP()
+ KV_SERIALIZE(signed_key_images);
+ END_KV_SERIALIZE_MAP()
+ };
+ };
+
+ struct COMMAND_RPC_IMPORT_KEY_IMAGES
+ {
+ struct signed_key_image
+ {
+ std::string key_image;
+ std::string signature;
+
+ BEGIN_KV_SERIALIZE_MAP()
+ KV_SERIALIZE(key_image);
+ KV_SERIALIZE(signature);
+ END_KV_SERIALIZE_MAP()
+ };
+
+ struct request
+ {
+ std::vector<signed_key_image> signed_key_images;
+
+ BEGIN_KV_SERIALIZE_MAP()
+ KV_SERIALIZE(signed_key_images);
+ END_KV_SERIALIZE_MAP()
+ };
+
+ struct response
+ {
+ uint64_t height;
+ uint64_t spent;
+ uint64_t unspent;
+
+ BEGIN_KV_SERIALIZE_MAP()
+ KV_SERIALIZE(height)
+ KV_SERIALIZE(spent)
+ KV_SERIALIZE(unspent)
+ END_KV_SERIALIZE_MAP()
+ };
+ };
+
}
}