@Override
  public boolean contains(final Object o) {
    if (!(o instanceof Bytes bytes)) {
      throw new IllegalArgumentException(
          "Expected Bytes, got " + (o == null ? "null" : o.getClass().getName()));
    }
    byte[] array = bytes.toArrayUnsafe();
    if (array.length != byteLength) {
      throw new IllegalArgumentException(
          "Byte array is size " + array.length + " but set is size " + byteLength);
    }
    if (root == null) {
      return false;
    }
    int level = 0;
    Node<E> current = root;
    while (current != null) {
      if (current.leafObject != null) {
        return Arrays.compare(current.leafArray, array) == 0;
      }
      current = current.children[array[level] & 0xff];
      level++;
    }
    return false;
  }
Create a BytesTrieSet with a fixed length

@param byteLength length in bytes of the stored types
evm/src/main/java/org/hyperledger/besu/collections/trie/BytesTrieSet.java