Re:Predicting Random Numbers in Ethereum Smart Contracts
by Flenser on Thursday February 08, 2018 @05:38AM
(#16331334)
Would this still be possible if the consensus algorithm was changed to proof of stake?
Re:Predicting Random Numbers in Ethereum Smart Contracts
by gwern on Friday February 09, 2018 @11:52AM
(#16341724)
I'm not sure. Maybe you could change the condition to 'n successive stake signatures' but you would also have to model the stake-selection procedure in it... A property over a hash is fairly simple, but rerunning the whole PoS, essentially, is probably going to blow the witness encryption out into astronomical sizes unless someone can think of clever tricks?
Secondly, as I understand witness encryption, if you're able to encode the hash rules as the condition, it would be easy to throw in an additional condition like 'all hash difficulties (# of leading zeros) must be >= difficulty XYZ', and simply ban large difficulty reductions. Which works as long as Bitcoin remains popular and justifying high-difficulty blocks, and if it crashes, your timelock is no longer secure so you don't want it to open and to failsafe.