|
|
|
|
|
by openasocket
3455 days ago
|
|
How do you prove the gamling is fair? I know little about Ethereum, but how can you make the outcomes of games verifiable? Either you use a RNG, in which case the house can use some RNG biased in their favor, or the program in completely deterministic, in which case the player can compute in advance the permutation of the cards and play perfectly. |
|
The dealer picks a random 512-bit number, X_0, and publishes a hash of X_0 to the players.
Each of the N players, picks another random 512-bit number and publishes it. These are X_1, X_2, ..., X_N.
The dealer xors X_0 through X_N to get a random seed to shuffle and deal out the deck.
At the end, the dealer publishes X_0 so the players can verify the dealer wasn't cheating.