# The Systemic Smart Contract

<figure><img src="/files/t5nhyX55j09bg1Zmp6rd" alt=""><figcaption><p>The Systemic Smart Contract</p></figcaption></figure>

* The user transfers QRNG to the randomness contract (this constitutes purchasing randomness), specifying in the comment where to send the result, or does not specify anything - then the result is stored in the contract until the next purchase.
* Events: transfer -> get random -> write random

**Generator Operations:**

1. Every 10 seconds, the generator updates the keys with which it signs the randomness.
   * Event: set passwords
2. Receives signed randomness from the chip and sends it to the blockchain, where the correctness of the signature is checked and, if correct, it is added to the purchase list.
   * Event: set random
3. Collect rewards that have accumulated from the purchase of randomness, which can be done once a day.
   * Event: claim rewards

**Administrator Operations:**

* Set default configuration, the cost of randomness in QRNG.
* Set up double encryption if necessary.

**Registrar Operations:**

* Needed for registering new generators.

\
\ <br>


---

# 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://sp8de-docs.gitbook.io/s-p-8-d-e-or-white-paper/the-operational-architecture-of-sp8de/data-encryption-and-transaction-verification-process/the-systemic-smart-contract.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.
