function stacksEqual(a, b) {
  if (a.length !== b.length) return false;
  return a.every((x, i) => {
    return tools.compare(x, b[i]) === 0;
  });
}
Checks if two arrays of Buffers are equal.
@param a - The first array of Buffers.
@param b - The second array of Buffers.
@returns True if the arrays are equal, false otherwise.