diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-11-28 14:07:25 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-11-28 17:54:22 +0000 |
commit | 82ba2108e98ab3f2695232fd45101bdc257e525a (patch) | |
tree | 68d2fcf0d962172f7012636fe6cd257d052a979a /src/wallet/wallet2.h | |
parent | epee: add functions to convert from URL format (ie, %XX values) (diff) | |
download | monero-82ba2108e98ab3f2695232fd45101bdc257e525a.tar.xz |
wallet: add API and RPC to create/parse monero: URIs
Diffstat (limited to '')
-rw-r--r-- | src/wallet/wallet2.h | 3 |
1 files changed, 3 insertions, 0 deletions
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<std::string> &unknown_parameters, std::string &error); + private: /*! * \brief Stores wallet information to wallet file. |