From 82ba2108e98ab3f2695232fd45101bdc257e525a Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Mon, 28 Nov 2016 14:07:25 +0000 Subject: wallet: add API and RPC to create/parse monero: URIs --- src/wallet/wallet2.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/wallet/wallet2.h') diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h index b6d3250b2..ae6d98a9c 100644 --- a/src/wallet/wallet2.h +++ b/src/wallet/wallet2.h @@ -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 &unknown_parameters, std::string &error); + private: /*! * \brief Stores wallet information to wallet file. -- cgit v1.2.3