1 // Copyright (c) 2011-2013 The Bitcoin developers
2 // Distributed under the MIT/X11 software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 #ifndef BITCOINADDRESSVALIDATOR_H
6 #define BITCOINADDRESSVALIDATOR_H
10 /** Base58 entry widget validator.
11 Corrects near-miss characters and refuses characters that are not part of base58.
13 class BitcoinAddressValidator : public QValidator
18 explicit BitcoinAddressValidator(QObject *parent = 0);
20 State validate(QString &input, int &pos) const;
22 static const int MaxAddressLength = 35;
25 #endif // BITCOINADDRESSVALIDATOR_H