DogyRace Integrates Chainlink VRF To Help Power Verifiably Random Race Results

Dogyrace
3 min readMay 18, 2022

We’re excited to announce that DogyRace — a novel on-chain dog racing game — has integrated Chainlink Verifiable Random Function (VRF) on BNB Chain mainnet. By integrating the industry-leading decentralized oracle network, we now have access to a tamper-proof and auditable source of randomness needed to power a provably fair gaming algorithm that generates race results by combining random numbers with the characteristics of each NFT Dog. Ultimately this creates more exciting races as the randomness makes the results a genuine surprise, similar to racing events in the real world.

Dogyrace is a racing game that combines Chainlink VRF and NFT Dog characteristics to generate randomized race results. Each NFT Dog has different abilities such as strength, speed, endurance, appearance, weight, and breed. NFT Dogs can be traded in their NFT marketplace or raced in the canodromes against other players.

In order to generate randomized game outcomes, we needed 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. The DogyRace 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 our users with automated and verifiable assurances directly on-chain that the random number generated by Chainlink VRF was not tampered with by the oracle, outside entities, or the DogyRace team.

“By integrating Chainlink VRF into our dog racing game, we’re able to generate randomized results that make the races more fair and exciting for our users.” — Vicente G, Project Manager of DogyRace

About Chainlink

Chainlink is the industry standard for building, accessing, and selling oracle services needed to power hybrid smart contracts on any blockchain. Chainlink oracle networks provide smart contracts with a way to reliably connect to any external API and leverage secure off-chain computations for enabling feature-rich applications. Chainlink currently secures tens of billions of dollars across DeFi, insurance, gaming, and other major industries, and offers global enterprises and leading data providers 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 DogyRace

DogyRace is a dog racing game based on RNG technology and built on Binance Smart Chain. Each dog has different abilities such as strength, speed, endurance, appearance, weight, breed. To learn more visit our website or follow us on Twitter.

--

--

Dogyrace

A dog racing platform based on BSC Blockchain, you can buy NFT dogs and canodromes where you will earn a real percentage of profit and bet on races.