code: function stringTuplesToTuples (tuples) {
    return tuples.map(tup => {
      if (!Array.isArray(tup)) {
        tup = [tup]
      }
      const proto = protoFromTuple(tup)
      if (tup.length > 1) {
        return [proto.code, convert.toBuffer(proto.code, tup[1])]
      }
      return [proto.code]
    })
  }
docs: [[str name, str addr]... ] -> [[int code, Buffer]... ]