function toBase58Check(hash, version) {
  v.parse(v.tuple([Hash160bitSchema, UInt8Schema]), [hash, version]);
  const payload = new Uint8Array(21);
  tools.writeUInt8(payload, 0, version);
  payload.set(hash, 1);
  return bs58check.encode(payload);
}
Converts a hash to a Base58Check-encoded string.
@param hash - The hash to be encoded.
@param version - The version byte to be prepended to the encoded string.
@returns The Base58Check-encoded string.