GraphemeNFT / rarible-scaffold

MIT License
0 stars 0 forks source link

sources of entropy / letters #1

Closed dcsan closed 3 years ago

dcsan commented 3 years ago

for the 'letter' NFT we want some source of randomness. using a real VRF would be expensive and complex, esp for a hackathon

some other ideas

for each mint there are some special variables available that would give us a different result each mint:

while a hostile miner maybe able to fake some of these, a fractional change in say gas price for the tx

https://docs.soliditylang.org/en/v0.8.7/units-and-global-variables.html#block-and-transaction-properties

if the minting TX has some other parameters such as a generated TX id, that would also give us more fields to work with.

https://www.trustology.io/insights-events/decoding-an-ethereum-transaction-its-no-secret-its-just-smart

cc @tomosaigon @keepRunning

tomosaigon commented 3 years ago

blockhash of blocknumber-1