> For the complete documentation index, see [llms.txt](https://docs.foresure.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.foresure.xyz/chapter-2-protocol-architecture-the-battle-against-friction/2.3-layer-2-execution-and-zero-knowledge-finality.md).

# 2.3 Layer 2 Execution and Zero-Knowledge Finality

To achieve the performance required for institutional-grade trading, Foresure integrates a custom-built Zero-Knowledge (ZK) Rollup solution. This allows us to move the high-frequency calculation of market prices off-chain while maintaining the absolute security of the Ethereum Mainnet.

Unlike Optimistic Rollups, which require a seven-day "challenge period" before a trade is considered final, ZK-Rollups provide **Instant Mathematical Finality**. Once a "Proof of Outcome" is generated and submitted to the Ethereum Layer 1, the funds are immediately unlocked. This enables sub-second latency, allowing Foresure to handle thousands of transactions per second (TPS) while reducing gas costs to a fraction of a cent. This makes "Micro-Hedging"—trading on small, specific events—economically viable for the first time in history.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.foresure.xyz/chapter-2-protocol-architecture-the-battle-against-friction/2.3-layer-2-execution-and-zero-knowledge-finality.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.
