Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the randomness contract in the hbbft engine. #159

Open
afck opened this issue Jun 25, 2019 · 0 comments
Open

Update the randomness contract in the hbbft engine. #159

afck opened this issue Jun 25, 2019 · 0 comments

Comments

@afck
Copy link
Collaborator

afck commented Jun 25, 2019

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.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant