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.
TreasureKey also plans to use Chainlink VRF in nearly all of our future implementations of new features that require randomness, leading to more fun and high-integrity blockchain games. Our project places emphasis on both fairness and security, which is why we also engaged Certik to do an audit on our smart contracts on top of the Chainlink integration.
“Chainlink VRF is a game-changer as its transparent RNG solution that allows any user to verify that the generated randomness was derived from a provably fair process,” stated the Co-Founder of TreasureKey. “With Chainlink VRF successfully integrated, we look forward to our next stage of growth, and we will continue exploring new ways to harness Chainlink solutions as our platform expands.”
About Chainlink
Chainlink is the industry standard oracle network for powering hybrid smart contracts. Chainlink Decentralized Oracle Networks provide developers with the largest collection of high-quality data sources and secure off-chain computations to expand the capabilities of smart contracts on any blockchain. Managed by a global, decentralized community, Chainlink currently secures billions of dollars in value for smart contracts across decentralized finance (DeFi), insurance, gaming, and other major industries.
Chainlink is trusted by hundreds of organizations, from global enterprises to projects at the forefront of the blockchain economy, to deliver definitive truth via secure, reliable oracle networks. To learn more about Chainlink, visit chain.link and subscribe to the Chainlink newsletter. To understand the full vision of the Chainlink Network, read the Chainlink 2.0 whitepaper. Want to discuss an integration? Talk to an expert.
Solutions | Docs | Twitter | Discord | Reddit | YouTube | Telegram | GitHub
About TreasureKey
TreasureKey is the #1 Gaming Dapp on Binance Smart Chain and is currently also on Polygon Network. It is a collection of decentralized, trustless, and immutable blockchain games running directly on the Binance Smart Chain and Polygon network with a wide variety of games including Coin Flip, Barbell Roll, Roulette, Dice It & Treasure Chest.
All of the game’s transactions are conducted in and built on top of the Binance Smart Chain (BSC). Our Smart Contracts are also transparent and use distributed ledgers and contracts through which everyone can see where the money is, when it should be paid out, and to whom.
Website | Community| Announcement| Twitter | Reddit | Gitbook