Hi Ebola,
I love your domain name, and you have a really slick website. I got my ticket (5377cef..), wish me luck!
The game is provably fair by using an external API from random.org and publishing the digital signature provided by the same website
While I have no doubt you aren't cheating, it would've been extremely easy for you to do so. Random.org says the results you generated were the 321st in the series. How do we know that you didn't keep calling random.org, throwing away the bad results until you found one favorable to yourself? You absolutely must published your method *ahead of time*, including what the sequence number we should expect, then at we don't need to worrying about you hand picking results (and instead only worry if random.org is cheating).
Is there any particular reason you generated the numbers with replacement, I would think this is unideal for a lottery with 3 prizes -- especially as you haven't clarified what happens if someone wins two prizes.
But to truly allow us to verify the results, you're going to have to releasing a script that can give generate the lottery tick numbers and their respective address.
Also being forced to pay from only a single sending address seems unfair and exposes too much technical detail on the user -- something along the lines of "return to first sending address" is much fairer (or use check what other on chain gambling sites do). And only allowing people to buy a single ticket seems counter productive
Hey man,
I did that much random API calls because of development, as you can see the php class doesn't have the method for signed integers
http://pew.bz/xG , so I did and test it.
public function generateSignedIntegers($numNumbers, $numMin, $numMax, $boolReplacement = true, $numBase = 10)
{
$arrParams = array();
$arrParams['apiKey'] = $this->strApiKey;
$arrParams['n'] = $numNumbers;
$arrParams['min'] = $numMin;
$arrParams['max'] = $numMax;
$arrParams['replacement'] = $boolReplacement;
$arrParams['base'] = $numBase;
$arrResponse = $this->call('generateSignedIntegers', $arrParams);
if (isset($arrResponse['error']['message'])) {
throw new Exception($arrResponse['error']['message']);
}
$arrReturn = array();
if (isset($arrResponse['result']['random']['data'])) {
$arrReturn =$arrResponse['result'];
}
return $arrReturn;
}
I will generate another api key to avoid this issue to happen again and use the old api key for testing if I need it.
Thanks for your comments.
And Good luck
www.satoshiraffle.com