Nxt Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Nxt Client 1.11.7 - NEW RELEASE: Ardor 2.0.3e TestNet IS LAUNCHED!

Pages: [1] 2 3 4  All

Author Topic: Lottery  (Read 7427 times)

lurker10

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1336
    • View Profile
  • Karma: +168/-33
Lottery
August 08, 2016, 10:08:49 pm

Lottery is closed. Do not buy tickets.

The rules are simple.
The ticket costs 10 NXT. This is how you buy it.
Open the Send NXT form, type in Recipient account NXT-YXC4-RB92-F6MQ-2ZRA6

10 NXT for Amount, click on Add a Message, in the Message field write 5 comma separated numbers from 0 to 30, numbers can be in any order. Example:
5,12,0,30,27

Check off the Encrypt Message box, the message must be publicly visible on the blockchain for transparency.
Click Send and your registration for the next lottery is completed.

DO NOT SEND FROM EXCHANGES!

Lottery will run every week, on Sunday, 18:00 UTC.

5% of the funds goes to service transaction fees. Surplus funds left after tx fees will be donated to the Lucky node lottery jar. This is a non profit project. All incorrectly formatted payments and payments of less than 10 NXT are considered donations and will go straight to the Lucky node lottery jar. If you lose in the lottery you still win supporting Nxt :)

Entire funds since last lottery are always paid to winners, less 5% service fee, less incorrectly formatted transfers. No jackpot funds held in the account, very simple accounting.
60% goes to who will guess all 5 numbers correctly.
25% - 4 numbers.
15% - 3 numbers.
There will be winners in each lottery, because the lottery will generate thousands of 5-number sequences to simulate thousands of participants until at least one combination matches the combination from one or more tickets. The order of numbers is not important. There can be several winners for each of 3,4,5 combinations in one lottery, but it can be predicted that for 4,5 combinations the odds of getting more than 1 winner are pretty low. If there are several winners, the prize is split between them, for instance, the 3-number 15% prize is split in two if there are two winners, each getting 7.5%.

A winning ticket is removed from the following rounds: ticket(s) that won in round of 5 will be removed from playing in rounds of 4 and 3, ticket(s) that won in round of 4 will be removed from playing in round of 3.

Prizes are paid instantly around 18:00 UTC, Sunday.

How To Verify Lottery Results.

# Install and sync Nxt client, run it on localhost, script talks to localhost anyway.
# Add nxt.apiServerEnforcePOST=false to nxt.properties (remember to remove it afterwards).
# Download the Lottery script v0.3 by NXT-8HJQ-DJ6Q-GBN8-G4A8G uploaded in block 924885 from Nxt Data Cloud (check that you do not run malware uploaded by someone else).
# Install php with curl and json.
in Ubuntu 14.04: apt-get install php5-cli php5-json php5-curl
in Ubuntu 16.04: apt-get install php7.0-cli php7.0-json php7.0-curl
In Windows: download and install PHP from http://windows.php.net/download#php-7.0 (not sure if windows binaries have curl and json extensions enabled, you'll need to figure it out on php support forums).
in Mac: http://php.net/manual/en/install.macosx.php
# get the seed for the lottery you want to verify, it is included in prize payout attached messages or look up the id of the block generated 10 blocks before Sunday 18:00 UTC and take 5 last digits from it, this will be the seed. Due to network latency and blockchain reorgs sometimes this block will be 11 blocks before 18:00 UTC.
# run the verification like this: php lottery.php seed yyyy-mm-dd
For example, the first lottery seed is 46850 from block 914773, date of the lottery 2016-08-14
php lottery.php 46850 2016-08-14

There are some edge cases in which the current script may act weird, but nothing serious.

Disclaimer:
Gambling is addictive. Spend only what you can afford to lose. A better form of gambling is trading. In trading you make an educated bet, in lottery your bet is mere luck. Personally I don't play in lotteries.
« Last Edit: September 25, 2016, 06:00:41 pm by lurker10 »
Run a node - win a prize! "Lucky node" project jar: NXT-8F28-EDVE-LPPX-HY4E7

Tosch110

  • Ex-Staff Member
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 2375
    • View Profile
  • Karma: +211/-18
Re: Lottery
August 09, 2016, 12:46:46 am

I think there have been several of those projects but none really took off.

There was tothemoon from twin, neodice from hash and jl777, I had something called "nxtscratch" going for a while. But the overall usage was not so big so I think all these projects stopped (I think tothemoon had some problems with security in the end but was pretty good running while it worked)

lurker10

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1336
    • View Profile
  • Karma: +168/-33
Re: Lottery
August 09, 2016, 05:57:47 am

I think there have been several of those projects but none really took off.

There was tothemoon from twin, neodice from hash and jl777, I had something called "nxtscratch" going for a while. But the overall usage was not so big so I think all these projects stopped (I think tothemoon had some problems with security in the end but was pretty good running while it worked)

Thanks, Tosch.
Lack of demand would indeed be a showstopper.
Security is not a major concern as I was going to keep it very simple, the attack vector would be near to none: no website, no user accounts, no authentication, no jackpot funds. If the lottery could lure in 10 players x 10 NXT ticket every week, I'd complete the script.
It would simulate millions of people participation by generating sequences of 5 numbers until all 3, 4 and 5-number reserved funds have been distributed. The odds to win would be fairly big, but the prizes would not be large, as there should be no jackpot from previous draws. Perhaps this condition makes it uninteresting :)
Run a node - win a prize! "Lucky node" project jar: NXT-8F28-EDVE-LPPX-HY4E7

Jose

  • Full Member
  • ***
  • Offline Offline
  • Posts: 207
    • View Profile
  • Karma: +60/-1
Re: Lottery
August 09, 2016, 06:38:21 am

AFAIK, Neodice is waiting for Nxt 2.0 to be re-launched.

https://nxtforum.org/index.php?topic=5618.msg216160#msg216160

rubenaco

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1063
  • I'm here and you?
    • View Profile
  • Karma: +163/-2
Re: Lottery
August 09, 2016, 12:38:31 pm

Great new I hadn't seen it! with good GUI sure it will rock!

Enviado desde mi Redmi Note 3 mediante Tapatalk

lurker10

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1336
    • View Profile
  • Karma: +168/-33
Re: Lottery
August 10, 2016, 06:32:39 am

Moved all content to the first post.
« Last Edit: August 14, 2016, 07:42:37 pm by lurker10 »
Run a node - win a prize! "Lucky node" project jar: NXT-8F28-EDVE-LPPX-HY4E7

shugo

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 71
    • View Profile
  • Karma: +5/-0
Re: Lottery
August 10, 2016, 07:07:05 am

done, participated :)

ty for the lottery

lurker10

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1336
    • View Profile
  • Karma: +168/-33
Re: Lottery
August 10, 2016, 02:07:59 pm

done, participated :)

ty for the lottery

Thanks! ;)
Run a node - win a prize! "Lucky node" project jar: NXT-8F28-EDVE-LPPX-HY4E7

CryptKeeper

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1229
    • View Profile
  • Karma: +77/-5
Re: Lottery
August 10, 2016, 03:04:53 pm

Nice project, I'm in!  ;D
Follow me on twitter for the latest news on bitcoin and altcoins!
Vanity Accounts Sale :-)

lurker10

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1336
    • View Profile
  • Karma: +168/-33
Re: Lottery
August 12, 2016, 09:13:13 am

Run a node - win a prize! "Lucky node" project jar: NXT-8F28-EDVE-LPPX-HY4E7

TheWireMaster

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 334
    • View Profile
    • NXT Folks
  • Karma: +21/-0
Re: Lottery
August 12, 2016, 11:24:34 am

I'm in... :)
NXT-5WW2-XQ63-CFGM-G7YAJ

yassin54

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 2508
  • I am Homer, Sorry my english is Bad!!
    • View Profile
  • Karma: +240/-14
Re: Lottery
August 12, 2016, 11:41:00 am

Same here!!  :P

box1413

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 658
    • View Profile
  • Karma: +96/-4
Re: Lottery
August 12, 2016, 12:42:18 pm

why not use the numbers from the NYC weekly lottery drawing? then you don't need to draw your own numbers and everyone can prove its not rigged.

let ppl invest in the jackpot where u can win if no one wins.

I wonder if there is any other site like this?

soldat

  • Newbie
  • *
  • Offline Offline
  • Posts: 11
    • View Profile
  • Karma: +0/-0
Re: Lottery
August 12, 2016, 12:45:14 pm

Im in  8)

lurker10

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1336
    • View Profile
  • Karma: +168/-33
Re: Lottery
August 12, 2016, 01:18:49 pm

why not use the numbers from the NYC weekly lottery drawing? then you don't need to draw your own numbers and everyone can prove its not rigged.

let ppl invest in the jackpot where u can win if no one wins.

I wonder if there is any other site like this?

Hello, thank you for this input. I've never thought of it.

I believe there is an issue with what you propose. The numbers from an external source will not always match one of the sequences in submitted tickets. In fact, they will almost never match because of very few participants in Nxt. The funds will have to be collected and wait for a long time until someone can guess the numbers. It's very unlikely it will ever happen in the Nxt lottery with few players. The lottery needs hundreds of thousands players to guess the numbers and that's what the script does - it simulates hundreds of thousands of players by generating thousands of combinations. I can show the source code but since I run it there is no point because I can show you one source but run a modified one. I am sad to say that having a provably not rigged lottery work for a limited number of players in a reasonable time is above my skillset.
In the future when we get thousands of players and we won't have to wait years for a winner, sure I'll use an external data source for this. Until then we have to do with what we have.
Run a node - win a prize! "Lucky node" project jar: NXT-8F28-EDVE-LPPX-HY4E7

allwelder

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1867
  • NxtChina.org
    • View Profile
    • NxtChina.org
  • Karma: +196/-13
Re: Lottery
August 12, 2016, 01:33:39 pm

Interesting,joined. :)
NxtChina |Weibo |Twitter Donation welcomed:NXT-APL9-66GU-K8LY-B3JJJ

box1413

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 658
    • View Profile
  • Karma: +96/-4
Re: Lottery
August 12, 2016, 02:33:52 pm

http://nylottery.ny.gov/wps/portal/Home/Lottery/Home

this is an interesting idea.... now the question is how can we decentralize this as much as possible. regardless you will need someone in the middle to hold the funds. Maybe "account controls" could be an option?

instead of just having it in nxt. how can we link it where u pay in BTC and u can cash out in BTC in order to get a bigger audience in to the platform? tie it in with SuperBTC somehow.

------

Another thing for those that aren't in NYC, there is a "quick draw" game, which is basically a lottery every 5 minutes. It's usually found in bars where patrons can play a quick $1-$5 lottery game while having a beer. It happens every 5 minutes. I'm sure there isn't an API to access the numbers, but if we can extract the numbers from here: http://nylottery.ny.gov/wps/portal/Home/Lottery/Home/Daily+Games/QUICK+DRAW --- its very possible to make a "semi-dencentralized ny lottery" game.

I think this idea has legs. someone just needs to execute it!

Investors invest in the initial pot and they also win a % of the proceeds from every person that buys a ticket. Players add to the pot and they win a % of the pot. Growing bigger and bigger when no one wins. having this on nxt would draw alot of people in i'd imagine when the pot gets really big.

The payout and deposit has to be in BTC, but the the backend can be nxt on number registration. I'm not sure how account controls would come into play, but that would have to be part of the equation aswell.

box1413

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 658
    • View Profile
  • Karma: +96/-4
Re: Lottery
August 12, 2016, 04:39:13 pm

Butthead

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 16
    • View Profile
  • Karma: +1/-0
Re: Lottery
August 12, 2016, 06:43:06 pm

I'm in!

box1413

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 658
    • View Profile
  • Karma: +96/-4
Re: Lottery
August 12, 2016, 09:45:02 pm

Can anyone shed some light on how nxt can implement this better than on ethereum? This dapp can be applicable to smart contracts aswell, but nxt needs an advantage that other smart contract systems can't easily copy.

This would give nxt a unqiue use case scenario. Lets figure out how this would work exactly, in the case of nxt and ethereum just to weigh the pros and cons of each platform.
Pages: [1] 2 3 4  All