diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-10-16 16:52:45 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-10-16 16:52:45 +0100 |
commit | 06b642dfe4b27216615310440ecd8d37db5652a0 (patch) | |
tree | 231c514dfdcee33028d07153224309ac8cc454c6 /src/wallet/wallet2_api.h | |
parent | Merge pull request #1203 (diff) | |
download | monero-06b642dfe4b27216615310440ecd8d37db5652a0.tar.xz |
wallet_api: add address validation functions
The payment id from integrated addresses is also parsed
Diffstat (limited to 'src/wallet/wallet2_api.h')
-rw-r--r-- | src/wallet/wallet2_api.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h index 0f622c26c..8427ba250 100644 --- a/src/wallet/wallet2_api.h +++ b/src/wallet/wallet2_api.h @@ -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(); /** |