# Viewing Keys & Proof of Innocence

Not all users want total privacy some need transparency for regulators, institutions, or DAO governance.

Veilon balances both worlds through optional auditability.

#### <mark style="color:yellow;">View Keys:</mark>

* Users can generate read only keys to share selective visibility with auditors, partners, or platforms.
* No one can act on these keys they’re purely for observation.

#### <mark style="color:yellow;">Tools:</mark>

* Proof of source-of-funds
* Proof of reserves
* Compliance dashboards for enterprise users

```javascript
import crypto from 'crypto';

function generateViewingKey(userPrivateKey, salt) {
  return crypto.createHash('sha256').update(userPrivateKey + salt).digest('hex');
}

const viewingKey = generateViewingKey(myPrivateKey, randomSalt);
```


---

# 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.veilon.io/platform-architecture/viewing-keys-and-proof-of-innocence.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.
