wallet_api: add address validation functions
The payment id from integrated addresses is also parsed
This commit is contained in:
@@ -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();
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user