Hot answers tagged

4 votes
Accepted

Generating NFT with random attributes?

Tezos doesn't provide any randomness though Michelson currently. PVSS features are expected to come in future proposals which can enable randomness generation. Currently, the best solution is probably ...
Rodrigo Quelhas's user avatar
4 votes
Accepted

Using dummy address for randomization

The address of these dummy contracts depends directly on the hash of the transaction, so it can be easily manipulated by the one creating it. So if the transactions are created by users, they can ...
LucasF's user avatar
  • 126
3 votes
Accepted

Pseudo-random numbers for NFT attribute random generation

So my specific questions: Is there a way to get the next block hash within a smart contract? No, there is no instruction in Michelson to query a block hash. Or some other way to get a value that isn'...
Raphaël Cauderlier's user avatar
1 vote

Manipulable block hash by baker

blockhash can be manipulated by every single endorser. It should be avoided to be used as source of entropy.
Papers.ch's user avatar
1 vote
Accepted

Calling Harbinger using Smartpy to get randomness

This project tezos-randomizer uses the Harbinger Oracle. Try to have a look at this file: https://github.com/asbjornenge/tezos-randomizer/blob/c4e2134daa724c6338c01daba055b85397ffd97e/randomizer.py#...
Rodrigo Quelhas's user avatar
1 vote

Design an oracle that provides random values to a contract

Some sketches of a response: You also need to trust that the oracle actually generates random values. Note that you can distribute the trust by using the several oracles and combining the result. I ...
arvidj's user avatar
  • 2,378

Only top scored, non community-wiki answers of a minimum length are eligible