TreasureKey Integrates Chainlink VRF to Bring Provably Fair Randomness to its Blockchain Games
We’re happy to announce that TreasureKey — a dapp hosting a collection of decentralized, trustless, and immutable blockchain games — has integrated Chainlink Verifiable Random Function (VRF) on both Binance Smart Chain (BSC) and Polygon mainnet to enable provably fair blockchain gaming. Simply put, Chainlink VRF is an auditable random number generator (RNG) that’s purpose-built for smart contract applications. Chainlink VRF generates entropy using secure off-chain computation and provides an on-chain cryptographic proof to prove that its random numbers are truly random and tamper-proof. This means all TreasureKey games using its Chainlink VRF for randomness are fair and unbiased for all users.
Previously, we were using an on-chain RNG solution for generating our numbers, but it was not truly random and we were consistently prone to exploits. We had been exploited for over 75,000 MATIC due to the lack of true randomness in our system before. Our team has tried various randomness solutions and we realized that none of them were truly random, as users could statistically guess the number with enough data since it was only pseudo-random. The odds were adjusted to make the payout match that of a traditional offline version of our games, but it was still error-prone since the RNG was not truly random. Under our v1 system, some users would win more than others, while some would lose more than others. This integration with Chainlink brings much-needed transparency and fairness to our games, which comes in addition to open-sourcing all our contracts soon.
Integrating Chainlink VRF was an easy choice by any measure because it is the most secure and time-tested source of blockchain randomness, already used by some of the most popular blockchain gaming platforms in our industry. Having an auditable RNG solution was important to the TreasureKey team because we wanted our community members to fully understand the verifiable integrity of the probabilities powering our platform games’ outcomes. TreasureKey is committed to creating a fraud-free user experience, and having Chainlink VRF sets the tone for our platform’s future by ensuring highly reliable and fair gaming experiences for our users.
On a technical level, Chainlink VRF works by combining block data that is still unknown when the request is made with the oracle node’s pre-committed private key to generate both a random number and a cryptographic proof. The TreasureKey smart contract will only accept the random number input if it has a valid cryptographic proof, and the cryptographic proof can only be generated if the VRF process is tamper-proof. This provides users with automated and publicly verifiable assurances directly on-chain that each TreasureKey application using Chainlink VRF for randomness is provably fair and cannot be tampered with or predicted by the oracle, outside entities, or the TreasureKey team.