Author

Topic: Creating verifiable rolls with PHP (Read 153 times)

newbie
Activity: 154
Merit: 0
September 02, 2018, 09:39:52 AM
#3
Thanks!
legendary
Activity: 3808
Merit: 1723
Up to 300% + 200 FS deposit bonuses
September 02, 2018, 02:17:30 AM
#2
Its very easy for a dice style game and you have basically many options to work with.

What you do at first is generate some random seed such as
"01234567890"

and then you run a hash thru it such as SHA256
SHA256('01234567890')= EE29EB4A8725678278AC439CF7ABFD2A849CDC7378A6B6316017B81C51D720E7

Then you can simply add a nonce and client seed to that seed if you want and it would increment for everybet.

At first you show the gambler the hashed seed "EE29EB4A8725678278AC439CF7ABFD2A849CDC7378A6B6316017B81C51D720E7" and when he is done playing you need to give them the unhashed seed "01234567890" so they can verify their bets.

There are many ways to do this and if you program it correctly it would be impossible for either party to cheat.
newbie
Activity: 154
Merit: 0
September 01, 2018, 11:34:02 PM
#1
Hey guys I'm working on a gambling site for my community members to play around and invest in. Does anyone know how I can create rolls that are verifiable? I've found some old code from the old coindice script but it's not working fomr some reason. Cheers!
Jump to: