Author

Topic: How to create a coin-flip type address? (Read 1139 times)

hero member
Activity: 784
Merit: 500
December 29, 2013, 08:06:26 PM
#10
I can always write a Java implementation for you... It would obviously be for a fee but it's not too complex or drawn out, so the fee wouldn't be too bad.
hero member
Activity: 868
Merit: 502
December 29, 2013, 07:59:47 PM
#9
Its not very hard to do in python.

How would one do that?
legendary
Activity: 1008
Merit: 1005
December 29, 2013, 07:53:12 PM
#8
You'd write a script or server program to handle it automatically, from something as simple as a loop that waits for txns to come in, to a large operation teeming with cronjobs and database storage for auditing.

Hello.  I am interested in this as well.  What would be a good language to start with for this? PHP?

Off topic, but why are you still using the inputs sig?
sr. member
Activity: 420
Merit: 250
December 26, 2013, 10:21:38 PM
#7
Its not very hard to do in python.
hero member
Activity: 784
Merit: 500
December 26, 2013, 07:33:45 PM
#6
Naw, PHP is better for handling individual requests, and is somewhat hard to daemonize. I would recommend Java as you can thus have a coin-game backend and a possible web service meshed together natively. With that said, this isn't something you'd do on your average web host.
sr. member
Activity: 476
Merit: 250
What do you call a fish with no eyes? A Fsh!
December 26, 2013, 06:45:30 PM
#5
You'd write a script or server program to handle it automatically, from something as simple as a loop that waits for txns to come in, to a large operation teeming with cronjobs and database storage for auditing.

Hello.  I am interested in this as well.  What would be a good language to start with for this? PHP?
hero member
Activity: 784
Merit: 500
December 26, 2013, 06:35:19 PM
#4
You'd write a script or server program to handle it automatically, from something as simple as a loop that waits for txns to come in, to a large operation teeming with cronjobs and database storage for auditing.
hero member
Activity: 868
Merit: 502
December 26, 2013, 06:20:04 PM
#3
This isn't doable with an address alone, but is easily doable following the same model as most bitcoin-accepting services.

You simply run an instance of bitcoind on your server, and once a transaction comes in, pick true or false in a provably random and fair manner, and send back either nothing or double the amount.

How do I automate the process though?
hero member
Activity: 784
Merit: 500
December 25, 2013, 05:18:43 PM
#2
This isn't doable with an address alone, but is easily doable following the same model as most bitcoin-accepting services.

You simply run an instance of bitcoind on your server, and once a transaction comes in, pick true or false in a provably random and fair manner, and send back either nothing or double the amount.
hero member
Activity: 868
Merit: 502
December 25, 2013, 03:56:56 PM
#1
How would one go in the process of creating an address in which when somebody sent some coins to it, it would have a 50% chance of keeping the coins and a 50% chance of sending double the coins back, provided that the transaction is under half of the current wallet balance?  (Kind of like coinsflip.com, you send and it will send back if you win)

I am interested in claiming some new altcoin bounties.
Jump to: