The Reason for Not Using Another Source
A random number generator (RNG) is indispensable for equitably selecting winners. In a situation where raffles occurred behind closed doors, an off-chain RNG would suffice.
However, that is not the case. Therefore, they sought a solution capable of:
- Discouraging manipulation
- Upholding data integrity
- Guaranteeing transparency
While a block hash could generate random numbers, this system is vulnerable to exploitation by miners and validators, falling short of their requirements.
Chainlink VRF was chosen because of its proven resistance to tampering, providing users with indisputable evidence that winners of raffles are chosen fairly. With its ability to generate and verify cryptographic proofs on-chain, Chainlink VRF upholds the integrity of every random number delivered to the Raffles contracts.
Functioning of the System
Chainlink VRF operates by combining yet unknown block data at the time of request with the oracle node’s pre-committed private key, thereby creating a random number as well as a cryptographic proof.
The Raffles contract admits the random number input only if accompanied by a cryptographic proof, which can only be generated if the VRF process remains invulnerable to tampering.
This system stands as evidence to all that the process of winner selection is free from any influence by the oracle, external entities, or the LooksRare team.