[bitcoin-dev] BIP: OP_PRANDOM
jl2012 at xbt.hk
Fri May 20 11:34:03 UTC 2016
Using the hash of multiple blocks does not make it any safer. The miner of the last block always determines the results, by knowing the hashes of all previous blocks.
> == Security
> Pay-to-script-hash can be used to protect the details of contracts that use OP_PRANDOM from the prying eyes of miners. However, since there is also a non-zero risk that a participant in a contract may attempt to bribe a miner the inclusion of multiple block hashes as a source of randomness is a must. Every miner would effectively need to be bribed to ensure control over the results of the random numbers, which is already very unlikely. The risk approaches zero as N goes up.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the bitcoin-dev