> For the complete documentation index, see [llms.txt](https://lucid-ai.gitbook.io/introducing-bluwhale/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lucid-ai.gitbook.io/introducing-bluwhale/architecture/zero-knowledge-proof.md).

# Zero-Knowledge Proof

[zk-SNARK](https://www.fool.com/terms/z/zk-snark/): ZK (Zero-Knowledge) Proof is the mechanism that validates and verifies the data in Bluwhale Protocol. Verifying a proof is a computational operation that is logarithmic in the worst case to the mathematical statement, and the proof process does not require interaction between the prover and the verifier, only the proof needs to be passed to the verifier (non-interactive).

Through zk-SNARK, Bluwhale Protocol can verify and prove users' on and off chain data, while ensuring minimal disclosure of user data, achieving privacy-preserving.

Note that Bluwhale accommodates both ZK (Zero-Knowledge) Proof and non-ZK proof data. Utilizing ZK Proof as input minimizes the risk of data exposure throughout the end-to-end data flow. Nevertheless, non-ZK proof data can still be verified and processed privately, by the integration with TEE.

\ <br>

The execution layer ensures that all data transactions are recorded and verifiable on the blockchain, enabling participants to share rewards in a decentralized manner.

This layer operates within a multi-chain framework, tasked with orchestrating value distribution across the protocol's components. It leverages smart contracts implemented on various consensus layers, including both Layer 1 and Layer 2 networks. It allows data providers across various networks to share, contribute, and receive rewards for the data they supply on their preferred network.

The Execution Layer's primary functions include recording TEE attestations and verifier reports on-chain, and, following verifier consensus, allocating on-chain rewards to data providers and infrastructure while levying charges on data consumers. This structure ensures a decentralized, secure, and efficient process for managing transactions and interactions within the Bluwhale ecosystem.

<br>


---

# 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, and the optional `goal` query parameter:

```
GET https://lucid-ai.gitbook.io/introducing-bluwhale/architecture/zero-knowledge-proof.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
