Bitcoin Institute

Introducing: The Amazing Anonymous Bitcoin Lottery

8 messages BitcoinTalk nelisky, Insti August 22, 2010 — September 19, 2010
nelisky August 22, 2010 03:07 UTC Link to this message

That is TAABL for short 😊

So I needed a good excuse to start scripting on top of bitcoind, as I have a few projects in mind. But them being too time consuming I needed something smaller, which is why I ended up doing this.

What is the TAABL, I hear you ask? Well, glad you asked 😊 It’s a lottery, where you bet on the last 5 characters of a specific block hash. I take nothing from the bitcoin pool, it is all divided as follows:

1st prize - 5 characters correct - 50%
2nd prize - 4 (rightmost) characters correct - 6%
3rd prize - 3 (rightmost) characters correct - 8%
4th prize - 2 (rightmost) characters correct - 9%
5th prize - 1 (rightmost) character correct - 25%
bounty pool - 2%

I didn’t just take these number out of my ass. They roughly follow the structure of a local state lottery. I can change them if you can convince me I should, though.

The bounty pool is the ‘charity’ part, and one must always exist to lend some sense of reason to all those that bet. But what bounty will that be? Well, you can vote on what you want to see as recipients of that. This first one will most likely go to bitfaucet, but we also have EFF, some specific bounties that appear on the fora and, if this actually becomes a thing to keep doing, maybe pay for a site facelift or server costs.

For now, everything is open. Three things to keep in mind for the adventurous betters:

  • This is really alpha quality code, I tested a bit but not so much to think things will go glitch free.
  • The site design sucks, and will stay that way until the server side is fine tuned. My availability to do this is limited, but I’ll try my best to keep things running.
  • This is running out of an office server, meaning connectivity is far from perfect. Don’t be too alarmed if the server disappears for a couple of hours, I promise I’ll move this to a real server as soon as I can.

So, some basic rules:

  • Each bet costs 1.00
  • You can put as many bets on the same character string as you want to
  • There is no way to see which numbers others have already bet on… I’m of two minds as to this being a feature or a problem
  • Although you put money to bet on your account, prizes are not put there, but rather sent directly to BTCOUT (explained below)
  • This first round will have payments processed semi manually, to make sure everything goes ok, so expect delays. It will all be automated later, when I’m comfortable with the process

To use this system you have to register, but what about the anonymous in the lottery name? Well, no personal data is requested, or even allowed. You give me one bitcoin address to which prizes will be paid, and I give you one bitcoin address to which you can send your bet bitcoins. These are BTCOUT and BTCIN respectively. The OUT / IN are always in relation to the TAABL, so it’s easy to remember.

Once you register, you can log in using the BTCOUT alone. As an almost random string of characters, I feel that using passwords is unnecessary. There isn’t much you can do that is of harm if you use somebody else’s account. If you feel otherwise, I’ll come up with something better.

When you are logged in, you can bet on the open lottery draw, and you can see the draw details. You can also cancel tickets you bought. All of this gets locked 2 blocks from the end of the lottery draw.

Best of luck to all, and if you do hit the jackpot, you can always share the wealth with yours truly 😊

Check it out at http://taabl.datlatec.com

Insti August 27, 2010 10:34 UTC Link to this message

I couldn’t find anywhere on the website that said you can only win 1 prize.

If you pick 3 do you also win the prizes for the pick 2 and pick 1 since you must have done so?

Insti August 27, 2010 14:03 UTC Link to this message

a) Cancel tickets:   1) remove completely

b) Other bets visibility   3) show everything, all the time

c) Unclaimed prizes   1) Just roll over to the next draw

d) bet price   1) 1

e) draw interval   1) every 1k

Insti August 28, 2010 10:47 UTC Link to this message

No rollover makes this lottery far less desirable to me.

Insti September 6, 2010 13:29 UTC Link to this message
Quote from: nelisky on September 06, 2010, 1:20:34 PM UTC

This is just getting silly 😊

I can’t automate the Pick if it closes in 6 blocks! Either this is just one of those really unlikely events that will probably not happen again, or I need to add another character to the bets…

I’m opening another one, and use this to exercise the ‘give back bets that didn’t get confirmation blocks’.

I don’t understand why you need to give back any bets.

Bets close block: 994 (any bet that is not in by this block is not in the draw.) Winning number comes from block: 1000

Any bet in block 995-1994 gets included in the draw for block 2000

Insti September 14, 2010 07:56 UTC Link to this message

Website is confusing me.

On the main page,

On the Left: Next Draws: Block: 8000 Blocks to go: xxx Pot: xxx Side Pot? xxx

But then on the Right: Pick6 Current Pot: 908 Last Block checked: xxx

Are these 2 different lotteries? Does the pick lottery just keep going until it gives out 1 first place prize?

I could not find any information on the ‘pick’ lottery on the site.

Insti September 14, 2010 10:59 UTC Link to this message
Quote from: nelisky on September 14, 2010, 9:16:28 AM UTC

There are 2 types of game, as you assumed;

  • Lottery - A block number is defined as the one carrrying the result, a number of prizes are distributed based on how many hits you get on your bets (this one is fairly well explained on the rules page)
  • BitPick - Every block is checked, only one winner. You buy bets, but they only become active 6 blocks later (to prevent me from cheating), from then on if your bet matches the most recent block hash (rightmost characters) you take the pot home. The number of characters to match are defined by the type of BitPick, so Pick6, currently active, matches 6 characters.

Ok thanks.

How long do your pick bets stay active? until they win? forever? until somebody wins?

Insti September 19, 2010 07:30 UTC Link to this message

More picks - great idea!

Bug(?) - The [pick details] link in the header seems to only link to the pick 6. I’d expect it to take me to a page where I can choose which pick I want to see the details of.