Post
Topic
Board Announcements (Altcoins)
Address Validation
by
Unthinkingbit
on 04/01/2014, 23:12:34 UTC
..
Just thought I would bring this up, it may not be an issue, there is one thing in the files that are off (so far as I could see). Smeagol's address seems to be missing a character Smiley  I just came across that when parsing them for my prototype website, thought you should know Smiley

Bitcoin addresses use base 58 encoding, so on average 1 in 58 would be at least a letter shorter. To be safe, I just added a check to see that the address is valid before adding it to the receiver file.

Code:
if base58.get_bcaddress_version(addressFraction.coinAddress) == 0:
    self.coinAddresses.append(addressFraction.coinAddress)
else:
    print('Warning, the address %s is invalid and will not get paid.' % addressFraction.coinAddress)

Smeagol's short address, along with all the other short addresses, are all valid.