encodeBase58

Base58btc-encodes this byte array.

Base58 encoding algorithm:

  1. Convert the byte array to a BigInteger (treating it as an unsigned big-endian integer).

  2. Repeatedly divide by 58, using the remainder as an index into the alphabet.

  3. Encode each leading zero byte as a '1' character (the first alphabet character).

  4. Reverse the result, since it is built from least to most significant digit.