# Bound Witness Trees

## Bound Witness Tree

**Bound Witness Trees** are a foundational innovation in the XYO Layer One blockchain, designed to make data verification faster, more efficient, and scalable.

### What is a Bound Witness Tree?

Bound Witness Trees are a type of Rollup comprised of 2 or more Bound Witnesses. Rather than validating each transaction individually, XYO can validate an entire group by checking a single **root hash**—dramatically reducing computational load.

This structure enables **off-chain processing**, while still securing the full dataset on-chain through the root, making rollups a **first-order feature** in XYO Layer One. Through the single hash, you can "walk back" through the data using the tree structure. The validation of the tree can be done offline, rather than the by block producers, and it also makes the storage of it on XYO Layer One a single hash.

**This would allow someone to access the complete tree with just a single hash.**

> \*Similar to how all squares are rectangles and not all rectangles are square, all Bound Witness Trees are Rollups, but not all Rollups are Bound Witness Trees.

{% @mermaid/diagram content="flowchart TD
Block5\[Final Transaction for XYOL1] -- Can Walk Back Data --> Data1\[Data 1]
Block5\[Final Transaction for XYOL1] -- Can Include Other Bound Witnesses --> Data4\[Bound Witness 1]
Block5\[Final Transaction for XYOL1] -- Can Walk Back Data --> Data2\[Data 2]" %}

### Why They Matter

Bound Witness Trees help solve blockchain bloat by streamlining verification and reducing performance bottlenecks. They allow:

* **Faster validation**: Only the root needs to be verified.
* **Lower computation costs**: Nodes do less work.
* **Scalability**: XYO can handle large data volumes without slowing down.

### Key Features

* **Hierarchical structure**: Transactions grouped and aggregated.
* **Efficient verification**: Minimal data needs to be checked.
* **Built-in scalability**: Ideal for high-throughput blockchain use cases.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.xyo.network/xyo-layer-one/xyo-layer-one-features/rollups/bound-witness-trees.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
