> For the complete documentation index, see [llms.txt](https://zokanetwork.gitbook.io/zokanetwork/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zokanetwork.gitbook.io/zokanetwork/security/cryptographic-components.md).

# Cryptographic Components

ZOKA's codebase includes:

* Ristretto255-based private wallet operations.
* BIP39 mnemonic-based recovery flows.
* Commitments and nullifiers for private transfer accounting.
* zk-SNARK proof infrastructure.
* Bulletproof-style range proof components for private value constraints.
* Encrypted wallet storage.

Implementation details can change across releases, so integration work should track the active release branch and protocol activation heights.

## How They Fit Together

Commitments let the chain account for private values without publishing the plain amount. Nullifiers prevent double spends by making spent notes detectable without revealing the original note owner. zk-SNARK verification lets a node check private transaction validity against the active circuit rules.

Wallet recovery and scanning are separate concerns. A recovery phrase restores wallet identity, while scan material lets the wallet detect relevant encrypted outputs in chain data. Neither belongs in a public explorer query or support ticket.

## Release-Critical Material

Trusted setup or CRS files, wallet derivation code, proof verification code, and activation-height logic must be treated as release-critical. Development setup paths and seeded test setup must not be reused for production-value networks.


---

# 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://zokanetwork.gitbook.io/zokanetwork/security/cryptographic-components.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.
