code: function mergeLocks(locks) {
    if (Array.isArray(locks)) {
      return util.concatArrBuf(locks);
    } else if (typeof locks === 'string') {
      assert(util.isHex(locks));
      return Buffer.from(locks, 'hex');
    }
    assert(Buffer.isBuffer(locks));
    return locks;
  }
docs: /* Helper