jorisbontje / sleth

sleth: Ethereum Slot Machine DApp
http://jorisbontje.github.io/sleth/
68 stars 20 forks source link

entropy improvement #26

Open jorisbontje opened 9 years ago

jorisbontje commented 9 years ago

as suggested by @xcthulhu: "Here's a way to thwart miners: instead of making the roulette wheel based on block.prevhash, try using sha3([block.prevhash, block.nonce], 2). Mining is hard enough, but now this forces the miner to not only mine the ETH but also "mine" your roulette wheel. If you want to make it even harder, you can iterate sha3(sha3(sha3([block.prevhash, block.nonce], 2))), since sha3 is a costly procedure for GPUs."

jorisbontje commented 9 years ago

... except that BLOCK.NONCE is no longer available