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

Use KeyGenHistory contract for initialization. #157

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

Use KeyGenHistory contract for initialization. #157

afck opened this issue Jun 25, 2019 · 0 comments

Comments

@afck
Copy link
Collaborator

afck commented Jun 25, 2019

Replace the temporary config-file based initialization of the keys and key shares for hbbft with the KeyGenHistory contract.

  • The script that generates the TOML file needs to generate the contract constructor bytecode instead, together with the serialized Ack and Part parameters from a simulated execution of SyncKeyGen by the initial validators.
  • The engine needs to initialize itself from the genesis block, using the contract's acks and parts fields: It creates a SyncKeyGen instance and calls handle_part and then handle_ack for all those messages. Finally, SyncKeyGen::generate will create the correct NetworkInfo.
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