Search content
Sort by

Showing 5 of 5 results by puffmancali
Post
Topic
Board Project Development
Topic OP
Bitcoin gambling
by
puffmancali
on 01/12/2019, 23:54:49 UTC
I was thinking of hacking together an on-chain Bitcoin gambling game. It would be very similar to SatoshiDice (https://www.satoshidice.com/), except use Bitcoin instead of BCH. It would use the same provably fair scheme (Server seed hash is published on chain, then revealed ~3 days later). I think it would be cool if there was no website and it operated entirely on chain. You could send to one of 10 addresses at any time, each address corresponds to the odds you want to play.

Do you like the idea? Open to comments or suggestions.
Post
Topic
Board Project Development
Re: hello, i've recently launched a provably fair hourly bitcoin lottery website
by
puffmancali
on 25/05/2018, 02:26:15 UTC
Gotcha that would make sense and be a nice feature to add. And hey, thanks for your thoughtful responses. These are all valid concerns I must address
Post
Topic
Board Project Development
Re: hello, i've recently launched a provably fair hourly bitcoin lottery website
by
puffmancali
on 25/05/2018, 02:11:26 UTC
If a user wants to verify the payouts, they need to download the code and run it, yes. They can play the game without verifying the payouts though. I just need to provide a mechanism for users to verify the fairness if they wish to...


edit: Ahh! I see the issue I think you're raising. Potentially I could change the contents of verifyscript.js every round in order to cheat. So I need to prove that this verifyscript.js doesn't change. So I need to post this script somewhere (on a forum like this), where it can be quoted and timestamped by others
Post
Topic
Board Project Development
Re: hello, i've recently launched a provably fair hourly bitcoin lottery website
by
puffmancali
on 25/05/2018, 02:04:28 UTC
The script linked is not being run on the client side when they use the site. I run the selection algorithm on a private computer, then broadcast the results to my site's database. My web server than sees the update by querying the database. I provide the verifyscript.js to the client so they can, on their own, download the file and run it via node on their private computer. They do this if they want to verify the fairness of a previous round. So verifyscript.js doesn't actually execute unless the user downloads it onto their private computer, installs the necessary packages, and runs it from their own command line. And even then, it's only to verify that I have selected the results according to the published algorithm. Sorry for the confusion - does that make more sense?
Post
Topic
Board Project Development
hello, i've recently launched a provably fair hourly bitcoin lottery website
by
puffmancali
on 25/05/2018, 01:34:13 UTC
I'm hoping that anyone who is interested can identify that my selection algorithm is indeed provably fair. I'm also hoping to get the word out about my site! The site is called Satoshi Pot.

The url is: satoshipot.org.

On the main page (after clicking "play"), there is a Fairness tab that describes how it is provably fair, and includes a link to a verification script. Here's a summary:

We have hour-long lotteries. People can purchase tickets by signing up and sending bitcoin payments to their provided Ticket Address. Any payments that have received 1 block confirmation by the end of the round will result in tickets being awarded to that user. At the end of each round, we use the hash of the most recent Bitcoin block to seed a Pseudo-Random Number Generator (PRNG). We then sort all the entries alphabetically by username (all usernames are unique), and run our selection algorithm using the seeded PRNG. This creates a provably random outcome so that nobody (including us) can cheat the system. Please let me know your thoughts! And of course I'd be thrilled if you played as well Smiley