# QRNGchip x Smart Contract Connection

To ascertain the authenticity of the QRNG and ensure it is not a pseudorandom, we devised a robust solution aimed at precluding the dissemination of inferior quality random number generation across the network. This solution involves embedding each device with a unique private key. Subsequently, the smart contract is employed to verify the integrity and origin of the random numbers generated by confirming the private key associated with each device. This approach provides a verifiable means of ensuring that the random numbers supplied are genuinely quantum-generated.

The way this process works is described in several steps:

* Generate a new certificate using OpenSSL, secp256r1, and store it on the chip.
* Request the public key from the chip via API and convert it to EOS format (EOS\_R1).
* Automatically generate a new generator account and assign this key to it, recording the pair (generator - chip public key) in the blockchain.
* The user is provided with the generator name and a default owner key, which the owner must change later.


---

# 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-qrng.com-device/qrngchip-x-smart-contract-connection.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.
