corrected and function b58 encoding