From 79207743b84a404041e60ce7492c2cf3944eb93c Mon Sep 17 00:00:00 2001 From: Jaquee Date: Fri, 4 Aug 2017 23:28:38 +0200 Subject: walletAPI: init() lightwallet and SSL support --- src/wallet/wallet2_api.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/wallet/wallet2_api.h') diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h index 6f612bbb3..be17c7506 100644 --- a/src/wallet/wallet2_api.h +++ b/src/wallet/wallet2_api.h @@ -427,9 +427,12 @@ struct Wallet * * \param daemon_address - daemon address in "hostname:port" format * \param upper_transaction_size_limit + * \param daemon_username + * \param daemon_password + * \param lightWallet - start wallet in light mode, connect to a openmonero compatible server. * \return - true on success */ - virtual bool init(const std::string &daemon_address, uint64_t upper_transaction_size_limit, const std::string &daemon_username = "", const std::string &daemon_password = "") = 0; + virtual bool init(const std::string &daemon_address, uint64_t upper_transaction_size_limit = 0, const std::string &daemon_username = "", const std::string &daemon_password = "", bool use_ssl = false, bool lightWallet = false) = 0; /*! * \brief createWatchOnly - Creates a watch only wallet -- cgit v1.2.3 From fc9229342dfe56655415c190b84cec267d041540 Mon Sep 17 00:00:00 2001 From: Jaquee Date: Fri, 4 Aug 2017 23:31:33 +0200 Subject: walletAPI: add lightwallet login() and importWalletRequest() --- src/wallet/wallet2_api.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/wallet/wallet2_api.h') diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h index be17c7506..4d734ab94 100644 --- a/src/wallet/wallet2_api.h +++ b/src/wallet/wallet2_api.h @@ -725,6 +725,12 @@ struct Wallet * \return true on success */ virtual bool rescanSpent() = 0; + + //! Light wallet authenticate and login + virtual bool lightWalletLogin(bool &isNewWallet) const = 0; + + //! Initiates a light wallet import wallet request + virtual bool lightWalletImportWalletRequest(std::string &payment_id, uint64_t &fee, bool &new_request, bool &request_fulfilled, std::string &payment_address, std::string &status) = 0; }; /** -- cgit v1.2.3