wallet: add API and RPC to create/parse monero: URIs

This commit is contained in:
moneromooo-monero
2016-11-28 14:07:25 +00:00
parent d9001b43ac
commit 82ba2108e9
6 changed files with 233 additions and 0 deletions
+3
View File
@@ -547,6 +547,9 @@ namespace tools
std::string decrypt(const std::string &ciphertext, const crypto::secret_key &skey, bool authenticated = true) const;
std::string decrypt_with_view_secret_key(const std::string &ciphertext, bool authenticated = true) const;
std::string make_uri(const std::string &address, const std::string &payment_id, uint64_t amount, const std::string &tx_description, const std::string &recipient_name, std::string &error);
bool parse_uri(const std::string &uri, std::string &address, std::string &payment_id, uint64_t &amount, std::string &tx_description, std::string &recipient_name, std::vector<std::string> &unknown_parameters, std::string &error);
private:
/*!
* \brief Stores wallet information to wallet file.