# FHE: Compute in the Dark

#### Introduction

Unlike Zero-Knowledge (ZK) systems, which are excellent for proving a statement, FHE is designed for computing on data. TORUS integrates the tfhe-rs cryptographic library directly into the blockchain node.

#### How it Works

* **Encryption:** A user encrypts data (e.g., a token amount) on their device using their private key.
* **Computation:** The encrypted data is sent to the TORUS network. Validators run smart contract logic (e.g., add, subtract, select) on this encrypted ciphertext.
* **Result:** The network updates the state. The data remains encrypted throughout the entire lifecycle. Only the user with the correct view key can see the new balance.


---

# 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://docs.torustoken.xyz/3.-features/fhe-compute-in-the-dark.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.
