Closed wilsonehusin closed 6 years ago
With what input? A character that's not in the alphabet should clearly be an error but maybe with a better message
It was alphabet, though I forgot exactly. The fact that .find()
fixes the issue means the character was part of the alphabet, right? Will update this once I get back to the code.
That's the difference between find and index. With index it's an error to not find the needle but find will instead return -1. You can plug this -1 into the calculation but the result will be bogus
Woops, my bad. Apparently I was attempting to decode hex instead of b58 and 0
raised the error. Sorry for the false alarm!
In Python3,
b58decode_int
function throws the following error:Line 69 has shifted to line 83 in current repository.
Fixable by replacing
.index()
with.find()