Random Number Generator (RNG)

To ensure fairness and transparency in the distribution of rewards, Agora’s Loot Box System integrates with ChainLink's Verifiable Random Function (VRF).

The Loot Box System smart contract sources randomness from ChainLink VRF (Verifiable Random Function), a widely trusted oracle service that provides provably fair and verifiable random numbers. This ensures the integrity of random-based operations like lotteries or the distribution of digital assets in Loot Boxes.

The process begins when a request for randomness is sent from the Loot Box smart contract to the ChainLink VRF. The VRF then generates a random number and provides a cryptographic proof of the randomness, which is verifiable by anyone. This ensures that the process is tamper-proof and transparent, providing confidence in the fairness of the outcome. The random number is then used within the LootBox contract to determine the state transitions of the NFTs, such as from “Loot Box” state to “Gem” or “Golden Ticket”, and eventually to a Burned state after the prize allocation.

This system is part of what makes Agora's ecosystem trustworthy and secure, as it guarantees that the outcomes of each Loot Box campaign cannot be manipulated or predicted by any party, including the game developers themselves.

Last updated