function bytes2mh (buf) {
  const size = varint.decode(buf)
  const address = buf.slice(varint.decode.bytes)

  if (address.length !== size) {
    throw new Error('inconsistent lengths')
  }

  return uint8ArrayToString(address, 'base58btc')
}
/**
 * Converts bytes to bas58btc string
 *
 * @param {Uint8Array} buf
 * @returns {string} bas58btc string
 */
Converts bytes to bas58btc string
@param {Uint8Array} buf
@returns {string} bas58btc string
Converts bytes to bas58btc string @param { Uint8Array } buf @returns { string } bas58btc string
function bytes2mh (buf) {
  const size = varint.decode(buf)
  const address = buf.slice(varint.decode.bytes)
  if (address.length !== size) {
    throw new Error('inconsistent lengths')
  }
  return uint8ArrayToString(address, 'base58btc')
}
function bytes2mh ( buf ) { const size = varint . decode ( buf ) const address = buf . slice ( varint . decode . bytes ) if ( address . length !== size ) { throw new Error ( 'inconsistent lengths' ) } return uint8ArrayToString ( address , 'base58btc' ) }
Converts bytes to bas58btc string
 @param {Uint8Array} buf
 @returns {string} bas58btc string
Converts bytes to bas58btc string @param { Uint8Array } buf @returns { string } bas58btc string