> For the complete documentation index, see [llms.txt](https://duce.gitbook.io/duce/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://duce.gitbook.io/duce/getting-started/duce-cryptographic-modules-and-rollup-integration.md).

# DUCE Cryptographic Modules and Rollup Integration

**Technical Workflow**

The zkDEFAI FHE system processes data in the following sequence:

1. **Data Encryption:** All deposit and yield data is encrypted using FHE libraries.
2. **FHE Computation:** Investment algorithms execute on ciphertexts, enabling blind computation of yields.
3. **Zero-Knowledge Verification:** zk proofs are generated to confirm that the computations are correct, without revealing the underlying data.

**Performance Benchmarks**

Preliminary benchmarks indicate that:

* Latency remains within acceptable ranges
* Gas costs for on-chain verification via rollups are reduced by up to 70% compared to conventional methods. These benchmarks validate the efficiency of the integrated zkDEFAI FHE system.

#### Superchain Rollup Mechanics Enhancing **Batch Compression and Data Structures**

The rollup layer aggregates transactions into compressed blocks using optimized data structures. Each rollup block contains:

* A Merkle root of all batched transactions.
* Succinct zk proofs attesting to the correctness of off-chain computations. This design minimizes on-chain storage requirements and reduces verification costs.

**Fraud Proof and Dispute Resolution**

In the event of discrepancies, the system allows any party to submit a fraud proof. A sequence diagram outlines

* How a dispute is raised.
* The role of zk proofs in resolving the dispute.
* The final settlement mechanism on the base chain.

<figure><img src="https://mermaid.ink/img/pako:eNptU8GO2jAU_BXLh2orASUNCySHlbawqCvR1QqqHqpcXOcluAQ7dZ5pAfHvfU6ADaU5JI498zwzzz5waVLgMa_glwMtYapEbsUm0YyeUlhUUpVCI3ul8Y6Jik1VVTpUOm-mbpHLiYc96y1UuAGaeMxzC7lAY9nEaLRC4i1rv_as_Xr6NHt8ZrPPT-yLSV0Bt8iFKQpXevTSlWDlSih9npyLHdhbyjzw8E-iAjbx8EQ3mNpB9-FhOYnZFBAkslRV0gKx5I69Y5X7sVHIMitcykprTNYQlxNi7dcx-2pVnoP18utltgWrMiUFKqNZRpabEghX_P26e9p2AeisvqZZqFyB7O6bKFT6gZL03_cNU9DCrJbzWu9X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NA76QRTe98P7Y4fv6xJBLxwFwX00DqPxYDjo9wfHv4C4ZeY)" alt=""><figcaption></figcaption></figure>


---

# 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://duce.gitbook.io/duce/getting-started/duce-cryptographic-modules-and-rollup-integration.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.
