Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 741 Bytes

Randomness Source.md

File metadata and controls

22 lines (17 loc) · 741 Bytes

Do not rely on block.timestamp or blockhash as a source of randomness.

Both the timestamp and the blockhash can be influenced by miners to some degree.

The current block timestamp must be strictly larger than the timestamp of the last block, but the only guarantee is that it will be somewhere between the timestamps of two consecutive blocks in the canonical chain.


Slide Screenshot

075.jpg


Slide Deck

  • block.timestamp
  • blockhash
  • Miners -> Can Influence
  • Timestamp(block) > Timestamp(block-1)
  • Do Not Rely -> Source of Randomness

References