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 ...
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 ...
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'...
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.
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#...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
random × 9smart-contracts × 4
smartpy × 3
hash × 3
oracle × 3
tezos-client × 2
michelson × 2
blockchain × 2
security × 1
tokens × 1