PeetBet Logo
PeetBet
首页控制面板文档关于我们
连接钱包
概览运作方式连接钱包支持的代币可证明公平Chainlink VRFNerd Zone游戏抛硬币规则骰子规则合约费用与经济免费提款推荐规则常见问题验证与审计防诈骗指南条款和条件
Technical Deep Dive

Nerd Zone

The technical breakdown of why PeetBet is the first truly provably fair, open-source gambling platform with zero ability to manipulate outcomes.

Why Every Other Casino Can Scam You

Traditional Online Casinos

  • Random numbers generated on THEIR servers
  • You trust them to be honest (LOL)
  • No way to verify results weren't manipulated
  • Closed source code - black box
  • Can change odds without telling you
  • "Provably fair" = marketing buzzword

PeetBet (On-Chain)

  • Chainlink VRF - decentralized randomness
  • ZERO trust required - verify everything
  • Every result verifiable on Etherscan
  • 100% open source on GitHub
  • Odds hardcoded in immutable contract
  • Mathematically impossible to cheat

Chainlink VRF: The Magic Behind Provable Fairness

Chainlink VRF (Verifiable Random Function) is a cryptographic primitive that generates random numbers that are provably random and tamper-proof. Here's why it's impossible to cheat:

1

Request Generated On-Chain

When a game starts, a random number request is generated with a unique seed that includes the block hash, request ID, and other unpredictable data.

requestRandomWords(
  keyHash,           // Chainlink oracle identifier
  subscriptionId,    // Our VRF subscription
  requestConfirmations: 3,  // Wait 3 blocks
  callbackGasLimit,
  numWords: 1        // We only need 1 random number
)
2

Chainlink Nodes Generate Randomness

Multiple independent Chainlink nodes compute the random number using their private keys. The computation is deterministic given the inputs, but the private keys are unknown to anyone - including us.

// Node computation (simplified)
proof = VRF(privateKey, seed)
randomValue = hash(proof)
// Proof can be verified with public key!
3

Cryptographic Proof Verification

The random number comes with a cryptographic proof. The on-chain verifier contract checks this proof against Chainlink's public key. If the proof is invalid, the transaction reverts.

// Verification (done automatically)
bool valid = vrfCoordinator.verify(
  publicKey,
  proof,
  randomValue
);
require(valid, "Invalid VRF proof");
4

Winner Determined Fairly

The random value is used with a simple modulo operation to determine the winner. For coin flip: 0 or 1. For dice: 1 to N players. No manipulation possible.

// Coin Flip (2 players)
winner = randomWords[0] % 2 == 0 ? playerA : playerB;

// Dice Roll (N players)
winningNumber = (randomWords[0] % currentPlayers) + 1;
winner = players[winningNumber - 1];

Why It's IMPOSSIBLE For Us To Cheat

No Server Control

Random numbers come from Chainlink's decentralized oracle network, not our servers. We literally cannot influence them.

Immutable Code

Once deployed, the smart contract code cannot be changed. The winner determination logic is locked forever.

Public Verification

Every game result is recorded on Ethereum. Anyone can verify any game at any time on Etherscan.

Open Source

All our code is on GitHub. Security researchers, auditors, and users can verify there are no backdoors.

The Math: 256-bit Randomness

Chainlink VRF provides a 256-bit random number. Here's what that means in practical terms:

256 bits = Unguessable

2²⁵⁶ possible values = 115,792,089,237,316,195,423,570,985,008,687,907,853,269,984,665,640,564,039,457,584,007,913,129,639,936

That's more possible values than atoms in the observable universe. Brute-forcing is physically impossible.

Coin Flip Math

randomWord % 2
// Even number (50%) → Player A
// Odd number (50%)  → Player B

Example:
0x7a3f...2c04 % 2 = 0 → Player A wins
0x1b8e...7f91 % 2 = 1 → Player B wins

Dice Roll Math (N players)

(randomWord % N) + 1
// Result: 1 to N (equal probability)

Example (5 players):
0x7a3f...2c04 % 5 = 3
Winner = Player #4 (index 3 + 1)

Probability: 1/5 = 20% each

Contract Architecture

PeerBet.sol (Main)

0x10ff96bf...f04751cf

  • • Coin flip game logic
  • • Dice room game logic
  • • Balance management
  • • VRF callback handling
  • • Fee distribution

PeerBetViews.sol (Read)

0x0a444c1d...f255ed87

  • • Analytics queries
  • • Room batch fetching
  • • Player stats
  • • Platform statistics
  • • Achievement tracking

Key Winner Determination Code

function fulfillRandomWords(uint256 requestId, uint256[] calldata randomWords) internal override {
    // Check if this is a dice room request
    uint256 diceRoomId = diceRequestIdToRoomId[requestId];
    if (diceRoomId != 0) {
        // Dice game: winner = (random % players) + 1
        uint16 winningNumber = uint16((randomWords[0] % room.currentPlayers) + 1);
        address winner = players[winningNumber - 1];
        // ... distribute winnings
        return;
    }

    // Coin flip: winner = random % 2
    uint256 roomId = requestIdToRoomId[requestId];
    GameRoom storage room = rooms[roomId];

    // Pure 50/50 for P2P games
    address winner = (randomWords[0] % 2) == 0 ? room.playerA : room.playerB;

    // ... distribute winnings
}

Don't Trust, Verify

Every claim we make is verifiable. Here's how you can check for yourself:

1. View Contract Source Code

See the exact code running on Ethereum. It's verified and readable.

View on Etherscan

2. Check VRF Subscription

Verify we're using real Chainlink VRF, not a fake oracle.

Chainlink VRF Dashboard

3. Audit Game Results

Every game has a transaction. Check the VRF callback and result.

View Events

4. Review GitHub Source

Full source code including tests. Fork it, audit it, run it locally.

GitHub Repository

The Bottom Line

PeetBet is mathematically incapable of cheating. The randomness comes from Chainlink's decentralized oracle network, the code is open source and immutable, and every result is publicly verifiable on the blockchain. This is what "provably fair" actually means.

PeetBet Logo

PeetBet

具有可验证随机性的去中心化点对点加密博彩。

导航

  • 控制面板
  • 游戏
  • 房间
  • 排行榜
  • 任务
  • 推荐
  • 历史
  • 透明度
  • 设置

资源

  • 关于我们
  • 文档
  • 运作方式
  • 费用
  • 获取帮助
  • Discord

在 X 上关注我们

这是我们的主要社交媒体。关注我们获取更新、新闻和社区活动!

@PeetBet →

加入 Telegram

加入我们的群组,进行实时讨论、获取支持和最新动态!

t.me/peetbet →

联系我们

如需合作、营销活动、报告问题,或者想与我们一起工作,请通过此邮箱联系。

peet.bet.global@gmail.com

测试版 (Peet.bet v1.0.0)

此平台处于测试阶段。使用风险自负。请阅读我们的 条款与条件

v1.0.0

漏洞猎人计划

发现了漏洞或安全问题?报告它并获得奖励!加入我们的开发团队并赚取$$$。

通过邮件报告Bug

© 2026 PeetBet。保留所有权利。

条款与条件|免责声明

在以太坊上构建