Swirl colors top graphicSwirl colors top graphic
VRF 450x50

Secure & Verifiable On-Chain Randomness for the IBC Ecosystem

Leverage affordable and secure random number generation in your CosmWasm contracts with Secret VRF, an IBC-compatible & on-chain RNG that provides true randomness.


On-chain RNG done right

Secret VRF (Verifiable Random Function) is a decentralized random number generator (RNG) that generates random numbers entirely on-chain while preserving true randomness.

This enables developers to take advantage of the benefits of decentralized RNG without having to compromise on security, fairness, or usability.

VRF Light Green Icon 05


Secret VRF carries zero subscription fees, making it 100% free for IBC developers and the most affordable VRF option for EVM chains.

VRF Light Green Icon 04


When you use Secret VRF, you don’t have to rely on a centralized party for the functioning of your dApp.

VRF Light Green Icon 02


Secret VRF’s design prevents manipulation and front-running of outcomes, making your dApp secure & user-friendly.

VRF Green Icon 03

Easy to implement

Follow our step-by-step documentation to add Secret VRF to any dApp on an IBC-connected chain.


How Secret VRF preserves randomness on-chain

By combining the Tendermint Byzantine-Fault-Tolerance (BFT) consensus process with SGX secure enclaves, validators on the network can create and verify random numbers without knowing the number itself.


Secret VRF maximizes security & confidentiality by:

VRF Light Green Icon 01

Leveraging SGX secure enclaves to enable network nodes to generate and verify random numbers without being able to view the data. The enclaves can use an extra proof—provided alongside the encrypted random number—to verify it was created in the enclave.

VRF Light Green Icon 01

Using an in-SGX light client to stop block proposers from simulating a block before other validators sign it. This makes it impossible to find a favorable block simulation by brute force and prevents MEV.

VRF Light Green Icon 01

Merging the random number with an Initial Randomness Seed (IRS) to ensure the resulting number is tamperproof. On execution, user-generated entropy ensures the uniqueness of the provided number.

VRF Light Green Icon 01

By making the active validators on Secret Network a core part of RNG, which prevents attacks using different validator sets or forks of the current network. Even breaking an active validator enclave does not allow an attacker to know or influence upcoming random numbers as they cannot impact consensus.


What you can build with Secret VRF

VRF Gaming200x200


By using Secret VRF to determine game outcomes such as dice rolls or card draws, you ensure these are truly random, cannot be manipulated, and players cannot obtain an unfair advantage. You can also create surprise loot boxes without revealing the content.

VRF DeFi200x200


DeFi applications can use random numbers to add gamified protocol features, rebase token values, and distribute rewards. With Secret VRF, you ensure fairness and decentralization.

VRF NFTs200x200

NFT Minting

Use Secret VRF’s true randomness to distribute NFT collections in a fair and unbiased way, enhance scarcity and exclusivity, and add elements of surprise.

Lotteries Raffles200x200

Lotteries & Raffles

Web3-based lotteries and raffles can use Secret VRF to select winners randomly and fairly and prevent manipulation.

Governance DAOs 200x200v2

Governance & DAOs

With Secret VRF, you can select random participants for decision-making processes or determine the order of votes, without anyone being able to manipulate the outcomes.

VRF MPC200x200

Multi-Party Computation

Random numbers can be used in multi-party computations, where multiple parties jointly compute a function over their inputs without revealing their inputs to each other.


Try to hack our roulette and win up to $50K in SCRT

Witness Secret VRF in action by playing Secret Roulette, the first Secret VRF-powered game!*

We’re inviting experienced developers to try to hack the Secret VRF algorithm, with up to $50K in rewards for successful attempts.

*Currently only available on desktop

Start building with Secret VRF

Use our step-by-step tutorials to integrate Secret VRF in your dApp!


Need help?


Contact us via Discord

Join our Discord channel and post your question in the #🙋dev-issues channel (under “Developer Support”).


Submit a support request

Let us know about your issue and how we can reach you with our Bugs & Developer Inquiries form.


About Secret

Secret Network is a layer 1 blockchain built with the Cosmos SDK, that features private yet auditable smart contracts with encrypted input, output, and state. This protects users and empowers developers to build a better Web3.

Secret Network

Leverage the power of true on-chain randomness

Use Secret VRF’s verifiable and decentralized randomness to make your dApp safer and more secure, entirely cost-free.