Author

Topic: del (Read 1596 times)

newbie
Activity: 41
Merit: 0
del
February 24, 2014, 09:43:09 AM
#14
I fear that way is open to abuse and leave it out of my hands for some smart hackers to manipulate one way or another. How about we all get Max Keiser to draw the lottery on his show, THAT would be awesome  Smiley

There are quite a few bitcoin gambling sites, starting with Satoshi Dice, that use this method.  The hashcode of any specific future block is definitely random.  There is definitely no way for a hacker to control it, and everyone can agree on what the hashcode is after the block is confirmed.

However, on reflection, I think it would be simpler to use specific block numbers.  Then I can give a link to the block explorer page with the hash code, as follows:

• The winning lottery ticket numbers will be calculated using the total number N of tickets sold, and the confirmed hash code H of MAXcoin hashchain block number 106520, obtained after block number 106620 has been found (100 confirmations).

That is, once the the cryptoexplore search for block 106620 returns a block rather than
Search Results For "106620"
No Result Found
then H will be the hash value given at cryptoexplore's page for block 106520.  This value may also be found using the MAXcoind or MAXcoin-qt client, or using webcoin (dead link) or maxchain.info.

For example, no one can dispute these facts with a straight face, and everyone can easily check them (click the link):
• The hash of block 50000 is 00000000000059b7b1670117eeb04f472036c073f275cd50decce15d3894c8f5 in hex.
• The decimal value of that hash is 144170545449846795252878978589069370515757698399706647721462005.
You can calculate and check that decimal value using this arbitrary precision hex to decimal to hex converter.

If N is 10000, you can compute the winning ticket numbers in your head given the decimal value of the hash.
First prize would go to ticket 2005, second prize to ticket 2146, and third prize to ticket 6477.  Note:  the 12 least significant digits are 647721462005.

The decimal value of the hash, and the winning ticket numbers for more difficult values of N, are easily calculated using the bc command line tool which comes standard on most every Linux:
Code:
$ echo 'ibase=16; 00000000000059B7B1670117EEB04F472036C073F275CD50DECCE15D3894C8F5;' | bc
144170545449846795252878978589069370515757698399706647721462005
$ echo 'ibase=16;
>          h=00000000000059B7B1670117EEB04F472036C073F275CD50DECCE15D3894C8F5;
>          ibase=0A;
>          n=10000;
>          print "first prize: ", h%n, "\nSecond prize: ", (h/n)%n, "\nThird prize: ", ((h/n)/n)%n, "\n"' | bc
first prize: 2005
Second prize: 2146
Third prize: 6477
$ echo 'ibase=16;
>          h=00000000000059B7B1670117EEB04F472036C073F275CD50DECCE15D3894C8F5;
>          ibase=0A;
>          n=9999;
>          print "first prize: ", h%n, "\nSecond prize: ", (h/n)%n, "\nThird prize: ", ((h/n)/n)%n, "\n"' | bc
first prize: 9555
Second prize: 4693
Third prize: 2067
$ echo 'ibase=16;
>          h=00000000000059B7B1670117EEB04F472036C073F275CD50DECCE15D3894C8F5;
>          ibase=0A;
>          n=1000;
>          print "first prize: ", h%n, "\nSecond prize: ", (h/n)%n, "\nThird prize: ", ((h/n)/n)%n, "\n"' | bc
first prize: 5
Second prize: 462
Third prize: 721
$ echo 'ibase=16;
>          h=00000000000059B7B1670117EEB04F472036C073F275CD50DECCE15D3894C8F5;
>          ibase=0A;
>          n=997;
>          print "first prize: ", h%n, "\nSecond prize: ", (h/n)%n, "\nThird prize: ", ((h/n)/n)%n, "\n"' | bc
first prize: 72
Second prize: 550
Third prize: 848

Another place where the lottery operator is asking for unnecessary trust:  The assignment of ticket numbers must occur in an automatic and indisputable manner, with no discretion on the part of the lottery operator.  The best way to ensure this would have been to state ahead of time that any deposit transaction which is not for an integral number of MAXcoin would be returned.  This can be fixed:

• Starting March 1, all transactions must deliver an integral number of MAXcoin, or they will be returned.
• The ticket numbers for earlier transactions will be published on March 2, and any disputes will be resolved before the drawing.
• Subsequent ticket numbers will be assigned in the order the transactions are listed on the block explorer websites.  (Experts should be consulted to be certain that this is the same as the order transactions occur in the actual block).
• The lottery will close early enough so that the list of ticket numbers can be published before the drawing.

Regarding payout addresses:
• Starting March 1, the payout address will be the first sending address in the transaction.
• Users of online wallets should send a small amount to the lottery address, and verify that they receive the refund to their online account.  If they don't, they would be well advised to switch to a different wallet, or better, to run the standard wallet software on their PC.
• If some vandal tries to DOS the lottery by sending lots of small amounts, the promise to return them is void.  Users should check the lottery address before sending their test amount to be sure this is not happening.

See also my earlier posting, which used blockchain timestamps instead of specific block numbers. 
newbie
Activity: 22
Merit: 0
February 23, 2014, 07:07:37 PM
#13
maybe you should be clear how the "randomizer" is going to take place?
legendary
Activity: 1288
Merit: 1043
:^)
February 23, 2014, 04:27:30 PM
#12
• I will use a randomizer from 1 to 10,000 (if the number of tickets sold are less than 10,000, say 8564, the randomizer will be set to draw from 1 to 8564 and so on).

Scam!

The way to do it properly is to use data you can not manipulate (easily) like part of the hash for some future Maxcoin block. But I guess you will
not go with such approach, it would massively reduce your chance to win this lottery.

Some love the lottery and some don't. It's hard to please everybody, but calling it a scam is a bit over the top. I guess most things is a scam in your eyes. Some people were calling Bitcoin a scam when it first came out and look at it now.  Wink

Warning, confirmed scam!
legendary
Activity: 1288
Merit: 1043
:^)
February 23, 2014, 03:06:44 PM
#11
• I will use a randomizer from 1 to 10,000 (if the number of tickets sold are less than 10,000, say 8564, the randomizer will be set to draw from 1 to 8564 and so on).

Scam!

The way to do it properly is to use data you can not manipulate (easily) like part of the hash for some future Maxcoin block. But I guess you will
not go with such approach, it would massively reduce your chance to win this lottery.
newbie
Activity: 1
Merit: 0
February 21, 2014, 07:41:29 PM
#10
OK, I'll bite.

Sent 2 MAX

TXID: a2ea26c5f43bcd69c252f85735a7a2dfafcc0749c789fe9e0d2095eaf173b4cb

My address: meCJYpkP5uDUeMPX2xXofjCGUQnjuh6Bxk
legendary
Activity: 1848
Merit: 1000
February 21, 2014, 05:29:36 PM
#9
Sent 1 x MAX for 1 ticket, hope i'm lucky

TrxID: 956b218d66ebc39e46c5bc26277c7f40ef504250272259d6d48b4b097acd4059

MAX address for future winnings Smiley
mRi4pAanUfkPc8JnPRi2FwWw9PYvuqPCbt

Thanks for hosting this, great idea
member
Activity: 266
Merit: 10
February 21, 2014, 04:58:26 PM
#8
Bought 4 Tickets

4 Max sent.

My addy is: mUATwaKt1B9ymSHgoTRWBS628W8j7tQtZS


Cheers  Cool
newbie
Activity: 23
Merit: 0
February 20, 2014, 03:21:30 PM
#7
Great idea.
sr. member
Activity: 252
Merit: 250
February 20, 2014, 02:56:15 PM
#6
I just bought 1 ticket

meAVpJoKT4x6Jw2Tz1nUGLYXPjvGzwcbpE

1c96133f1462eb2fd486bc5df9db9b2106a5379d0d21f810b0b7b83fe363da31

Thanks!

Hi.

Some slight problem, you have transferred 0.9MAX and need to send another 0.1MAX.
Have a nice day.

Hi, Thanks for letting me know, I have just transferred another 1.1 Max for a total of 2 tickets please.

balance paid 1.1 Max from mQwLVMqjFHFsTHF8CrQUWqAAVe6Bk1vXif

d297d37cbf3dfcdb786cecb73df09b8f2f9b3b2db22abf25b2e3e5aa74b6e040

Thanks

Ilan

sr. member
Activity: 266
Merit: 250
I want free lunch, i'm gonna go with this guy.
February 20, 2014, 02:10:32 PM
#5
Are you confident you're  going to sell all tickets?
full member
Activity: 217
Merit: 100
February 20, 2014, 03:32:42 AM
#4
I'm going to buy my tickets.
sr. member
Activity: 252
Merit: 250
February 20, 2014, 03:26:19 AM
#3
I just bought 1 ticket

meAVpJoKT4x6Jw2Tz1nUGLYXPjvGzwcbpE

1c96133f1462eb2fd486bc5df9db9b2106a5379d0d21f810b0b7b83fe363da31

Thanks!
sr. member
Activity: 350
Merit: 250
February 15, 2014, 06:50:13 PM
#2
I've bought one ticket Smiley
TXID: fd0001551a9a6c8d81ac0c31cb1dfcd3250cafd7205727e8bdf8528e953499c8
member
Activity: 84
Merit: 10
February 15, 2014, 02:22:52 PM
#1
v

Jump to: