可证公平
每一局 BC 自研游戏的结果,都可以用服务端种子、客户端种子和 nonce 自行核验。选择游戏,查看它的结果是怎么算出来的。
Video Poker
去核验Solving the Trust Issue with Online Gambling
The underlying concept of provable fairness is that players have the ability to prove and verify that their results are fair and unmanipulated. This is achieved through the use of a commitment scheme, along with cryptographic hashing.
The commitment scheme is used to ensure that the player has an influence on all results generated. Cryptographic hashing is used to ensure that the casino also remains honest to this commitment scheme. Both concepts combined creates a trust-less environment when gambling online.
This is simplified in the following representation:
Hex string: hash = HMAC_SHA256(clientSeed:nonce, serverSeed:i)
Dealing logic:
- Create a deck of 52 cards, sequenced as spade A-K, heart A-K, club A-K and diamond A-K.
- To deal card i (i starts from 0), calculate the hash with the formula above.
- Convert the hash to a number between 0 and 1: take the first 15 characters as a hexadecimal number, and use its remainder divided by 47 as the start position. Read 14 characters from that position as a hexadecimal number, shift it right by 3 bits, and multiply it by 2^-53.
- Multiply this number by the number of cards left in the deck and round it down. The result is the position of the dealt card in the remaining deck. Remove that card from the deck.
- Repeat steps 2 to 4 until 10 cards are dealt. The first 5 cards are the initial hand. Replacement cards are taken from card 6 onwards, in order.
Note: A new seed must be set to verify the previous data (the server seed is encrypted)