code: function multibase (nameOrCode, buf) {
    if (!buf) {
      throw new Error('requires an encoded buffer')
    }
    const base = getBase(nameOrCode)
    const codeBuf = Buffer.from(base.code)
  
    const name = base.name
    validEncode(name, buf)
    return Buffer.concat([codeBuf, buf])
  }
docs: Create a new buffer with the multibase varint+code.
  
  @param {string|number} nameOrCode - The multibase name or code number.
  @param {Buffer} buf - The data to be prefixed with multibase.
  @memberof Multibase
  @returns {Buffer}