def base58_decode_padded(s):
    pad = 0
    for c in s:
        if c == b58_digits[0]:
            pad += 1
        else:
            break
    h = base58_decode(s) % '%x'
    if len(h) % 2:
        h = '0' + h
    res = h.decode('hex')
    return chr(0) * pad + res
dataset/ETHPy150Open bloomark/f13x/admin_utils/addrgen.py/base58_decode_padded/swapped operands of `%`