base58Checksum method
Computes the checksum of a Base58-encoded string.
Implementation
int base58Checksum(String input) {
int total = 0;
for (var i = 0; i < input.length; i++) {
var currentChar = input[i];
var foundIndex = NosoConst.b58Alphabet.indexOf(currentChar);
if (foundIndex != -1) {
total += foundIndex;
}
}
return total;
}