wallet_api: add address validation functions

The payment id from integrated addresses is also parsed
This commit is contained in:
moneromooo-monero
2016-10-16 16:52:45 +01:00
parent 34fcfcd7cc
commit 06b642dfe4
2 changed files with 22 additions and 0 deletions
+2
View File
@@ -280,6 +280,8 @@ struct Wallet
static uint64_t amountFromDouble(double amount);
static std::string genPaymentId();
static bool paymentIdValid(const std::string &paiment_id);
static bool addressValid(const std::string &str, bool testnet);
static std::string paymentIdFromAddress(const std::string &str, bool testnet);
static uint64_t maximumAllowedAmount();
/**