Bitcoin/address validation: Difference between revisions
m
Minor code correction.
(New post.) |
m (Minor code correction.) |
||
Line 362:
std::string::size_type index = ALPHABET.find(ch);
if ( index == static_cast<uint64_t>(-1) ) {
throw std::invalid_argument("Invalid character found in bitcoin address
}
for ( uint64_t i = result.size() - 1; i > 0; i-- ) {
|