Post
Topic
Board Gambling
Re: BitJack21.com - Bitcoin Blackjack (Roulette coming soon)
by
m03sizlak
on 07/08/2011, 07:08:48 UTC
OK, I have found a way to COMPLETELY, 100%, beyond any reasonable doubt, *PROVE* that my game is 100% honest.

It only seems fitting that cryptography, which is the basis for our trust in the bitcoin system, will now be used as the basis for trust in my bitcoin blackjack game.

Here's how it will work:

1.) Embedded in the client side javascript code of the game will be a random number generator.  It will generate a random number prior to each hand (call this number R2).  The user will have the option to either use the number generated by their web browser, or modify it as they see fit.

2.)  When the user clicks on "DEAL", their random number will be sent to the server.  The server will generate 2 of its own random numbers, call them R1 and RX.

3.) The server computes SHA256(R1 + RX), and sends this back to the user, this is displayed in the user's browser at the start of each hand.

4.) The server generates a very long string of random bits by calling
SHA256(R1 + R2 + 0)
SHA256(R1 + R2 + 1)
SHA256(R1 + R2 + 2)
SHA256(R1 + R2 + 3)
etc...

This string of random bits essentially *is* the deck order.  In other words, you can directly determine the order of the cards in the deck directly using this (I will be posting the function).

5.) AFTER the hand is over, the server displays to the user the actual values of R1 and RX.

This will allow the user to mathematically prove/verify that:
1.) The order of the cards was COMPLETELY RANDOM.
2.) The order of the cards was predetermined prior to the hand starting.
3.) The order of the cards did not change during the hand.

-Mr. Sizlak