# Technical Deep Dive

<figure><img src="https://1678461108-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXsJ4ct5DILiEKdixm6Wh%2Fuploads%2F09AWuizViQK7IHoBBDpN%2Fimage.png?alt=media&#x26;token=5862275a-9cb2-4298-9daa-8a03b9842d32" alt=""><figcaption></figcaption></figure>

Similar to ZK-Rollup protocols, Vessel consists of three major components: the sequencer, the prover, and the contract.

A user typically initiates a request to the sequencer (with certain exceptions like deposits and withdrawals that may incur on-chain transactions, though these are less frequent). The sequencer inspects and processes the request, responding to the user instantaneously, much like other CEX servers.

The key difference is that the sequencer also produces witnesses while processing user requests and streams them to the prover. Using these witnesses, the prover generates SNARK proofs to attest that the sequencer is operating correctly —— ensuring it doesn’t mint funds out of thin air, doesn’t move assets between accounts without authorization, and doesn’t fake or replay orders. Meanwhile, the off-chain state is updated according to the rules encoded in ZK arithmetization.

The SNARK proofs, along with a digest of the off-chain state, are committed to the smart contract for verification and finalization. All user assets are held in an on-chain contract called the "Vault" and can only be moved in ways specified by a valid proof.


---

# 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://vesselfinance.gitbook.io/vessel/technical-deep-dive.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.
