ZKasino’s Integration of Chainlink VRF

ZKasino
3 min readJan 23, 2023

--

We’re excited to announce that ZKasino, a decentralized gaming platform built by ZigZag Labs, has integrated Chainlink Verifiable Random Function (VRF) on Polygon and BNB Chain mainnets. This integration allows ZKasino to use a verifiable random number generator that helps ensure that on-chain game outcomes are provably fair and tamper-proof for every player.

About ZKasino

ZKasino is a scalable and decentralized gaming platform that leverages secure Layer-2 chains such as zkSync, Polygon, and BNB Chain. By integrating Chainlink VRF, ZKasino can help ensure that game outcomes are decided in a verifiably random manner, which is critical for the transparent and fair operations of their games.

Randomizing Game Outcomes With Chainlink VRF

Chainlink VRF is used to randomize game outcomes in a unique Web3-native way. It is a secure random number generator that can be independently audited by any user. The VRF is 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.

In order to randomize game outcomes in a uniquely Web3-native way, ZKasino needed access to a secure random number generator that could be independently audited. However, RNG solutions for smart contracts require several security considerations to prevent manipulation and ensure system integrity. Chainlink VRF was chosen as it is 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. ZKasino’s Game Contracts 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 verifiable assurances that game outcomes using Chainlink VRF as a source of randomness are provably fair and are unable to be tampered with by the oracle, outside entities, or the ZigZag Labs team.

Chainlink is the industry standard for oracle services, and Chainlink VRF was the best solution to help power ZKasino’s games.

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. It also 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.

--

--

ZKasino

Decentralised betting platform built for Layer-2 ZK Rollups.