# Provably Fair

## Fairness and Security Mechanisms

Being a fully on-chain protocol, Debets places heavy emphasis on security and fairness through transparency. **Non-custodial by design**, Debets never takes possession of players’ funds – users bet directly from their Web3 wallets, and payouts are sent instantly to winners’ wallets by the smart contracts​. There are no accounts or deposits held by a central entity, and no KYC or identity checks are required to participate​, preserving user privacy and permissionless access. Every transaction and bet outcome is recorded on the public blockchain, meaning the entire operation of Debets is open for audit by anyone. This transparency is coupled with **provably fair gaming**: Debets integrates Chainlink VRF (Verifiable Random Function) to generate random numbers for game outcomes​. Chainlink VRF provides cryptographic proof that the randomness is unbiased and not tampered with, ensuring that neither Debets nor any external party can rig the results​. The combination of open-source smart contracts, on-chain execution, and verifiable randomness means that developers and researchers can independently verify the fairness and integrity of the protocol’s games. Moreover, Debets’ smart contracts are **immutable** once deployed, preventing any hidden alterations to game logic. In summary, Debets achieves fairness and security not by trusting a casino operator, but by leveraging transparent code and decentralized oracles – a key requirement for a foundational Web3 protocol in the gambling space​

## How does Chainlink VRF work? <a href="#how-does-chainlink-vrf-work" id="how-does-chainlink-vrf-work"></a>

A smart contract can utilize Chainlink VRF to obtain a secure and **verifiable random number** in four simple steps:​

<figure><img src="https://3581985376-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F01AVdO28IKtqnXkBqCDf%2Fuploads%2FJsNLxJmvgXh2tbehoFQK%2F%E5%9B%BE%E7%89%87.png?alt=media&#x26;token=d0181987-1a59-47d4-8e2f-54f26d8f854c" alt=""><figcaption></figcaption></figure>

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.​
