> For the complete documentation index, see [llms.txt](https://cruxdecussata.gitbook.io/xchain-introduction/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cruxdecussata.gitbook.io/xchain-introduction/overview/privacy-and-xchain-a-built-in-concept/the-zero-knowledge-zk-module.md).

# The Zero-Knowledge (ZK) Module

XChain leverages the **DEMOS Zero-Knowledge (ZK) Module**, an interactive zero-knowledge protocol built using battle-proven cryptographic algorithms. The module is intentionally lightweight, consisting of a concise implementation that enables repeatable and consistent zero-knowledge proof generation and verification.

The ZK process is based on the **Magical Box** logic. In this model, sensitive data (the “Toy”) is concealed within a Magical Box and secured using a secret key. During verification, the verifier receives only the sealed box and initiates a challenge (the “Coin Flip”). The prover demonstrates knowledge of the contents by successfully performing the required cryptographic operation—referred to as the “Magical Trick”—without ever revealing the underlying data.

A successful execution of this process constitutes a valid zero-knowledge proof.


---

# 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://cruxdecussata.gitbook.io/xchain-introduction/overview/privacy-and-xchain-a-built-in-concept/the-zero-knowledge-zk-module.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.
