# The Optimistic Hybrid Exchange

The fundamental challenge in crypto trading has been combining centralized performance with decentralized security. Our breakthrough lies in making centralized components "unable to be evil" through cryptographic guarantees and economic incentives.

Here's how:

**A) SYSTEM ARCHITECTURE**

At its core, Yamata operates through a dual-layer design that separates execution from validation. The Sequencer—our high-performance matching engine—processes trades with the speed of centralized systems. Surrounding it, a decentralized network of Guardian Nodes continuously validates every action, ensuring the Sequencer remains honest through cryptographic verification and economic incentives.

<figure><img src="/files/aPBYAlls4FzOZd56z1re" alt="" width="563"><figcaption></figcaption></figure>

This hybrid settlement model enables a unique order flow system. When users place trades, orders follow two parallel paths:

* Method A:  Direct submission to the Sequencer via WebSocket/REST API for immediate processing
* Method B:  Simultaneous submission onchain and to IPFS, creating an immutable public record

Every 10 seconds, the Sequencer groups processed orders into epochs, publishing Merkle tree roots on-chain. This creates cryptographic commitments that Guardian Nodes can verify against the IPFS records, ensuring the Sequencer processes orders exactly as they were received.

**This architecture delivers unprecedented guarantees:**

* Centralized speed with decentralized oversight
* Cryptographic proof of order execution
* Transparent yet efficient settlement
* Economic incentives for system integrity


---

# 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://paper.yamata.io/the-optimistic-hybrid-exchange.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.
