def encode_base58_address(hex, addr_version)
      base = addr_version + hex
      Base58.encode(base + calc_checksum(base))
    end
def encode_base58_address(hex, addr_version)
      base = addr_version + hex
      Base58.encode(base + calc_checksum(base))
    end
encode Base58 check address.
 @param [String] hex the address payload.
 @param [String] addr_version the address version for P2PKH and P2SH.
 @return [String] Base58 check encoding address.