Adding base58 encoding and decoding