poanetwork / parity-ethereum

Fast, light, robust Ethereum implementation.
https://parity.io
Other
10 stars 12 forks source link

Update the randomness contract in the hbbft engine. #159

Open afck opened 5 years ago

afck commented 5 years ago

XOR the random_data field from all contributions in every epoch, and call storeRandom with the result.

We can store the random number in the block header, and make the storeRandom call an implicit system call. (This is probably less awkward than making an actual transaction with a fake sender somehow.)