Bitcoin Forum
June 23, 2024, 06:44:26 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Economy / Gambling / Re: Bittery.net - Bitcoin blockchain based lottery on: January 18, 2017, 08:57:15 PM
So I take it this isn't provavbly fair in anyway?

I looked at your site and found the script is

Int64 hashCode = 0;
if (!string.IsNullOrEmpty(hash))
{
   byte[] byteContents = Encoding.Unicode.GetBytes(hash);
   SHA256 hash = new SHA256CryptoServiceProvider();
   byte[] hashText = hash.ComputeHash(byteContents);
   Int64 hashCodeStart = BitConverter.ToInt64(hashText, 0);
   Int64 hashCodeMedium = BitConverter.ToInt64(hashText, Cool;
   Int64 hashCodeEnd = BitConverter.ToInt64(hashText, 24);
   hashCode = hashCodeStart ^ hashCodeMedium ^ hashCodeEnd;
   hashCode = Math.Abs(hashCode);
}
return (int)(hashCode % 29) + 1;


However where does it get those hashes from ?

Not sure if the script is correct, but based on the OP, the hashes are gotten from the bitcoin blockchain, from newly mined blocks. If adaseb has the correct script, you need to use hashCode % 30, not 29 and than add 1. Looks to me like it's provably fair.

29 % 29 gives 0, making #30 impossible to get, while 29 % 30 gives 29 which when one is added to, makes 30.

Yes, you're right. In application on server is that number represented by operator. In configuration this operator is 30. It was mistake only in text on web.

I checked database and number 30 was calculated in some blocks. For example in 448800. I corrected text on website. Thanks for warning.

2  Economy / Gambling / Re: Bittery.net - Bitcoin blockchain based lottery on: January 17, 2017, 10:01:19 PM
110 block left to start first round.

From round 450000 we start a new function HAPPY 3. Every round we randomly select 3 tickets, which win extra bonus.

For 0.0005 BTC you can win jackpot. With every ticket increase your chance!
3  Economy / Gambling / Re: Bitcoin blockchain based lottery on: January 16, 2017, 10:27:01 PM
Bonus is Jackpot and other 4 places for winning - 6 numbers are jackpot, 5 + 1 additional numbers are 2nd place, 5 numbers are 3rd place, and 4 numbers are 4th place and 3 intentical numbers are 5th place. Prize for every place is calculated by number of tickets.

We prepare function for choosing 3 happy tickets to win bonus.

4  Economy / Gambling / Bittery.net - Bitcoin blockchain based lottery on: January 16, 2017, 10:15:05 PM
Hi,
we prepared new Bitcoin blockchain based lottery.
You can bet the ticket for only 0.0005 BTC by sending bitcoins to round address.
We generate 6 random numbers from 1-30 and we draw 6 + 1 additional number (which increase your chance for win) every 10 blocks from block hash (it's countable by enclosed script).

Jackpot is calculated from number of tickets and previous round residual value. So, more bets increase jackpot.

We start at block 448800, don't miss it.


www.bittery.net
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!