2 ms·
I think that would be easy to fix, though. Hash every X'th block in some manner, to take effect in 5X blocks or whatever, would probably be good enough. Again,
by jerf 9y ago
I think that would be easy to fix, though. Hash every X'th block in some manner, to take effect in 5X blocks or whatever, would probably be good enough. Again, if someone is manipulating literally every bit of an accepted block successfully to successfully hack you via this method, your currency already has a problem.
There's enough agreed-upon entropy lying around for this to work.
- DennisP 9y agoA method for really strong randomness is threshold signatures, like DFinity is using. As long as you get M of N submitters you get a random result which none of them can predict or manipulate; it's the same result no matter which M submit. But I think it depends on elliptic curves, so it'd be vulnerable to quantum computers. Another possibility is for participants to submit a hash of a random number, and then submit their preimages in a second round, with a deposit that gets slashed if they fail to submit the second round. A third approach is for participants to submit random numbers, and then to use a lengthy hashing phase to generate the random result, with a trick to more quickly verify the result: https://www.reddit.com/r/ethereum/comments/4mdkku/could_ethereum_do_this_better_tor_project_is/d3v6djb/ https://www.reddit.com/r/ethereum/comments/4mdkku/could_ethe...