FameBet

什么是可证明公平?

可证明公平意味着每场游戏的结果都是由玩家可以独立验证的随机值生成的。这保证了透明度和公平性,确保玩家和娱乐城都无法操纵结果。

如何运作?

VRF(可验证随机函数)为了生成真正的随机值,我们使用VRF。此函数接受多个输入,包括用户ID、游戏名称、游戏随机数和娱乐城的密钥。它执行加密计算并输出随机值和证明。此证明允许任何人验证该值是公平生成的且未被篡改。我们遵循RFC6979 VRF实现,使用SECP256K1_SHA256_TAI密码套件以实现安全和可验证的随机性。

验证公平性

玩家可以使用以下代码独立验证随机值:

const { verify } = require('@roamin/ecvrf')
const toHex = require('string-hex')

const publicKey = '02bf185c865baa18e7e1c8e5ee3f313c2fad62208b3f6ff2abdfb9ba858f12bd14';
const request = 'cm7bzfgwl0000yl0whlt8es3f-MINES-244';
const random = '63b63a1c1411b35e0aac628fa7013ee65fd52d2ea9b03015a614318422db4d38';
const proof = '03087f523c2fe9de7ec4f08e6ed2c74d414724d3743f9e4f2fba4df695dd87b9f8b25566213101887fc21f0124c55e24de43a6c6b47e65a4c0dec22168279d3e30ba44ccbbc32c7623905e747b7921c00f'

try {
  const result = verify(publicKey, proof, toHex(request))
  console.log(result === random ? 'Is Verified' : 'Not Verified')
} catch (error) {
  console.log(error)
}

计算游戏结果

一旦验证,随机值将转换为数字:

import * as crypto from 'crypto';
function bytesToUniformFloat(xs) {
    const hash = crypto.createHash('blake2b512').update(xs).digest();
    const value = hash.readBigUInt64LE(0);
    return Number(value) / Number(BigInt(2 ** 64 - 1));
  }

然后使用此转换后的数字根据游戏特定逻辑生成最终游戏结果。

function calcMinesIxs({ size, mines, randomValue }) {
  const remainingIxs = Array.from({ length: size }, (_, i) => i);
  const mineIxs = [];
  for (let i = 0; i < mines; i++) {
    const seedI = Buffer.from(randomValue + '-' + i, 'ascii');
    const ixI = Math.floor(bytesToUniformFloat(seedI) * remainingIxs.length);
    mineIxs.push(remainingIxs[ixI]);
    remainingIxs.splice(ixI, 1);
  }
  return mineIxs;
}

const calcMinesWin = ({ size, mines, reveals, bet }) => {
  let mult = 1.0;
  for (let i = 0; i < reveals; i++) {
    const lossProbability = mines / (size - i);
    mult *= 1.0 / (1.0 - lossProbability);
  }
  return Math.floor(100.0 * bet * mult * 0.98) / 100.0;
};

function generateBoard({ size, mines, randomValue }) {
  const mineIxs = calcMinesIxs({ size, mines, randomValue });
  const sizeSqrt = Math.sqrt(size);
  const board = Array.from({ length: sizeSqrt }).map(() => Array(sizeSqrt).fill(0));
  for (const index of mineIxs) {
    const row = Math.floor(index / sizeSqrt);
    const col = index % sizeSqrt;
    if (row < sizeSqrt && col < sizeSqrt) {
      board[row][col] = -1;
    }
  }
  console.log('Board:', board);
  return board;
}

generateBoard({ size: 25, mines: 2, randomValue: 'be87e890f696aad0aad28bef78a3f2322c7687a76ff6f86b6dadb4f2aa00eeb9' });
console.log('Multipliers:');
for (let i = 1; i < 24; i++) {
  console.log(i, ': ', calcMinesWin({ size: 25, mines: 2, reveals: i, bet: 1 }));
}

Board: 
 [
  [ -1, 0, 0, 0, 0 ],
  [ 0, 0, 0, 0, 0 ],
  [ 0, 0, 0, 0, 0 ],
  [ 0, 0, 0, 0, -1 ],
  [ 0, 0, 0, 0, 0 ]
] 

Multipliers:
1 :  1.06
2 :  1.16
3 :  1.27
4 :  1.4
5 :  1.54
6 :  1.71
7 :  1.92
8 :  2.16
9 :  2.44
10 :  2.79
11 :  3.23
12 :  3.76
13 :  4.45
14 :  5.34
15 :  6.53
16 :  8.16
17 :  10.49
18 :  13.99
19 :  19.59
20 :  29.39
21 :  48.99
22 :  97.99
23 :  293.99

Famebet

Famebet.com由Better Fame LTD拥有和运营。注册号:15907,注册地址:Hamchako, Mutsamudu, Autonomous Island of Anjouan, Union of Comoros。联系我们:support@famebet.com。Famebet.com由科摩罗联盟昂儒昂自治岛政府授权和监管,并在许可证号ALSI-202509070-FI2下运营。Famebet.com已通过所有监管合规要求,并依法获得授权进行任何及所有机会游戏和博彩的游戏运营。

DiscordTelegramTikTokYouTubeInstagramX

联系

support@famebet.com

合作伙伴

partners@famebet.com

联盟计划

18+

© 2026 Famebet. 保留所有权利。