The Systemic Smart Contract
Last updated
Last updated
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:
Every 10 seconds, the generator updates the keys with which it signs the randomness.
Event: set passwords
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
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.