loomchain
loomchain copied to clipboard
Investigate distributed PRNG
There's a Tendermint/Cosmos hack that implements distributed PRNG, we might want to investigate: https://github.com/dgamingfoundation/tendermint/blob/dcr-random/docs/arcade/arcade.md
Hah, that dgaming stuff is super complex. Here are some additional references for using random numbers in smart contracts:
- https://blog.positive.com/predicting-random-numbers-in-ethereum-smart-contracts-e5358c6b8620
- https://blog.keep.network/whats-in-a-beacon-12c34b0bc078
- https://ethereum.stackexchange.com/questions/191/how-can-i-securely-generate-a-random-number-in-my-smart-contract
We could build something similar to the Keep random beacon via the consensus reactor, though it'll be a whole lot more complicated than an Oracle.
Here's my findings https://docs.google.com/document/d/1LCwqHwsz6W6u_6u2qnIJDxD0cg_0VmRAAhj2tZg1oJU/edit?usp=sharing