Hacker Newsnew | past | comments | ask | show | jobs | submit | renas's commentslogin

This is the reason the lottery should be run by a smart contract in Ethereum for example, like https://lifelottery.github.io/


Yep, this one for Ethereum Smart Contracts:

Ethereum Smart Contracs in a Nutshell for Hackers http://linuxforme.com/ethereum-smart-contracts-in-a-nutshell...


the icons are also a little open source project https://github.com/renasboy/eth-address-icon


lottery() is the final method, meaning, its what we want to be called by owner while we still have the result block available. the manual_lottery() was created for testing purposes only and its going to be removed when on production network.


try this lottery code instead https://github.com/renasboy/ETHLottery


Is it correct that the betted value doesn't influence any winning chances?

Also, is the last byte of the blockhash function return value guaranteed to be equidistributed?


Yeah sure, check this version of the lottery https://github.com/renasboy/ETHLottery


Where is the github link? As I see there are other Ethereum based lotteries on github for example: https://github.com/renasboy/ETHLottery


yep!


It seems so, no one gave us feedback :-(


Please let us know if we made it too hard.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: