Implementing Randao for random number generation
https://github.com/randao/randao/blob/master/contracts/Randao.sol. There is a more secure version called Randao++. But this will require zero-knowledge proofs. For now, we can go with Randao. It will only require hashing.
@ilyasergey This may require support for user defined data structure, e.g., struct.
@AmritKumar Not sure. Records can be always modelled via pairs and appropriately implemented getters/setters (something we could think of for a higher-lever language).
This will require support of hash for blockchain.json in the intepreter interface.
This will require support of hash for blockchain.json in the intepreter interface.
@evesnow91 can you elaborate?
@vaivaswatha What he meant was we need to add extra fields in blockchain.json to incorporate previous block's hash. So, instead of the following blockchain.json:
[
{
"vname": "BLOCKNUMBER",
"type": "BNum",
"value": "100"
}
]
we may want to have the following:
[
{
"vname": "BLOCKNUMBER",
"type": "BNum",
"value": "100"
},
{
"vname": "PREVBLOCKHASH",
"type": "ByStr32",
"value": "0x123456789012345678901234567890123456789012345678901234567890abff"
}
]
Maybe it's time we added TIMESTAMP too.