News for hackers. Stuff that matters.
Re:Predicting Random Numbers in Ethereum Smart Contracts by sova on Friday February 02, 2018 @07:45PM (#16295427)
The only solution I can think of is evolving contracts that rewrite along the blockchain as they evolve, the most current write being the ~state of the "secret". Each evolving contract could, composing a variety of hashing functions, write frequently enough to the blockchain that it would be impossible to predict where it was going, but verify it along the way, historically. Call it an evolving hash function
Re:Predicting Random Numbers in Ethereum Smart Contracts by AgentME on Friday February 02, 2018 @08:55PM (#16295691)
You couldn't do that and have it evolve towards a predetermined value though (unless you make it predictable in a way that any viewer could also predict it).
Re:Predicting Random Numbers in Ethereum Smart Contracts by sova on Saturday February 03, 2018 @01:33PM (#16298814)
Yes you can, you have a hash that is not public and only segments are revealed and verified along the chain. Revealing the whole secret no longer makes it secret
Re:Predicting Random Numbers in Ethereum Smart Contracts by AgentME on Saturday February 03, 2018 @02:09PM (#16298999)
How would that work? Everything in the blockchain is public. You can't automatically have something be revealed in the blockchain; if that worked, what stops someone from simulating blocks being added to the blockchain and seeing what your contract does? Unless the decryption was somehow linked to the set of the proof-of-works involved, but I don't think anyone yet has an idea of how that could be done.

You could later publish a decryption key into the blockchain that the contract uses, but I don't think that's "automatic" in the sense the earlier posts were hoping for.

Re:Predicting Random Numbers in Ethereum Smart Contracts by sova on Tuesday February 06, 2018 @11:20PM (#16322218)
Right, you would need a secret that is never revealed on the blockchain itself, but you could verify that someone had it and posted hashes derived from it periodically on the blockchain.