diff options
author | Jakob Lind <karl.jakob.lind@gmail.com> | 2014-08-05 08:17:23 +0200 |
---|---|---|
committer | Jakob Lind <karl.jakob.lind@gmail.com> | 2014-08-05 08:17:23 +0200 |
commit | 0c3255ead8132c9903aa3b62333460fc3ed67713 (patch) | |
tree | 81b47a2cd57c216e7d1d2ef1aaa1f7bb818e4c94 /src/wallet/wallet_rpc_server_commands_defs.h | |
parent | refactoring. get seed code in wallet2 (diff) | |
download | monero-0c3255ead8132c9903aa3b62333460fc3ed67713.tar.xz |
query_key command in wallet rpc.
only support mnemonic as key_type currently
Diffstat (limited to 'src/wallet/wallet_rpc_server_commands_defs.h')
-rw-r--r-- | src/wallet/wallet_rpc_server_commands_defs.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/wallet/wallet_rpc_server_commands_defs.h b/src/wallet/wallet_rpc_server_commands_defs.h index 146e84cb2..48f8ec2a5 100644 --- a/src/wallet/wallet_rpc_server_commands_defs.h +++ b/src/wallet/wallet_rpc_server_commands_defs.h @@ -257,6 +257,28 @@ namespace wallet_rpc END_KV_SERIALIZE_MAP() }; }; + + //JSON RPC V2 + struct COMMAND_RPC_QUERY_KEY + { + struct request + { + std::string key_type; + + BEGIN_KV_SERIALIZE_MAP() + KV_SERIALIZE(key_type) + END_KV_SERIALIZE_MAP() + }; + + struct response + { + std::string key; + + BEGIN_KV_SERIALIZE_MAP() + KV_SERIALIZE(key) + END_KV_SERIALIZE_MAP() + }; + }; } } |