Chance-G Integrates Chainlink VRF To Help Draw Winning Numbers In Match Numbers Game

Chance-G Service
3 min readNov 28, 2022

Chance-G has integrated Chainlink Verifiable Random Function (VRF) on BNB Chain mainnet.

Chance-G’s Match Numbers Game consists of matching the winning numbers announced in each round — fairness and transparency are paramount in the number draw process.

By integrating the industry-leading decentralized oracle network, we have access to the tamper-proof and auditable random source needed to help draw the winning numbers, which is critical for running the game. This makes for a more fair game as players can be sure that the winning numbers are drawn using a provably fair source of randomness.

In order to help ensure that the winning number draw process is provably fair, we need access to a secure random number generator (RNG) that any user could independently audit. However, RNG solutions for smart contracts require several security considerations to prevent manipulation and ensure system integrity. For instance, RNG solutions derived from blockchain data like block hashes can be exploited by miners/validators, while off-chain RNG solutions derived from off-chain APIs are opaque and don’t provide users with definitive proof about the integrity of the process.

After reviewing various solutions, we selected Chainlink VRF because it’s based on cutting-edge academic research, supported by a time-tested oracle network, and secured through the generation and on-chain verification of cryptographic proofs that prove the integrity of each random number supplied to smart contracts.

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.

At the end of the game round, the smart contract requests a random number from Chainlink VRF on BNB Chain. When a random number is generated by Chainlink VRF, it is transmitted to Klaytn mainnet through an event check. Chance-G’s Match Numbers Game can then select a winner using a provably fair source of randomness.

This provides our users with automated and verifiable assurances directly on-chain that the randomness used to help draw winning numbers is provably fair and was not tampered with by the oracle, outside entities, or the Chance-G Service team.

“Fairness is critical for Web3 gaming applications. We’re excited to integrate Chainlink VRF into our Match Numbers Game to help ensure that winners are selected fairly and in a transparent manner.” — <Chance-G Team>

About Chainlink

Chainlink is the industry-standard Web3 services platform that has enabled trillions of dollars in transaction volume across DeFi, insurance, gaming, NFTs, and other major industries. As the leading decentralized oracle network, Chainlink enables developers to build feature-rich Web3 applications with seamless access to real-world data and off-chain computation across any blockchain and provides global enterprises with a universal gateway to all blockchains.

Learn more about Chainlink by visiting chain.link or reading the developer documentation at docs.chain.link. To discuss an integration, reach out to an expert.

About Chance-G Service

Chance-G Service is a Web3 game service on Klaytn mainnet where anyone can participate in simple games and get rewards.
The first game, Match Numbers, is a game that matches 3 or more winning numbers and receives a reward in USDT.

Learn more about Chance-G Service by reading medium.

- Chance-G : https://chance-g.io/
- Telegram : https://t.me/chanceG_Comm
- Twitter : https://twitter.com/ChanceG25

--

--