def self.encode(v)
    # encode v, which is a string of bytes, to base58.    

    long_value = 0