This commit is contained in:
osiris account 2023-03-15 11:08:04 -07:00
parent 8bb7099e1d
commit 54be66521a
7 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,25 @@
## random number vulns
<br>
### post-merge notes
<br>
* `BLOCKHASH` opcode will still be available, but given that it will no longer be forged through the proof of work hashing process, the pseudorandomness provided by this opcode will be much weaker.
* `DIFFICULTY` is renamed to `PREVRANDAO`, and return the output of the randomness beacon provided by the beacon chain. It's stronger than `BLOCKHASH` but still biasable.
<br>
----
### resources
* [ethereum randomness ](https://eth2book.info/altair/part2/building_blocks/randomness)
* [randao github](https://github.com/randao/randao)
* [exploring the randao game in pos ethereum](https://ethereum.github.io/beaconrunner/notebooks/randao/randao.html)