-
Notifications
You must be signed in to change notification settings - Fork 2
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
dkg #381
dkg #381
Conversation
Someone is attempting to deploy this pull request to the entropyxyz Team on Vercel. To accomplish this, the commit author's email address needs to be associated with a GitHub account. Learn more about how to change the commit author information. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great! Its a lot bigger than i was expecting, but now i see why all this stuff is needed.
So if i have understood right, the propagation pallet is back, and used so that the chain can inform the threshold servers of the 'registering group' for a particular user.
So now the user/new
http endpoint called when registering is called by the offchain worker, not the user, and serves to let validators know whether they need to perform a DKG, or just wait to be sent a keyshare via user/receive_key
.
This gets the thumbs up from me.
Just for clarity - if i've understood right DKG is now the only key generation method and it is no longer possible for the user to submit keyshares they generated themselves. The only place we use KeyShare::new_centralized
is when mocking the key generation in tests.
Maybe once this is merged we will want do some renaming, eg:
SigningMessage
could now beProtocolMessage
(as it is no longer only used for signing)SigningErr
->ProtocolErr
new_party/signing_protocol.rs
->protocol_execution.rs
My only other nit would be that execute_dkg
and execute_protocol
share a lot of common code and could maybe be refactored. That would definitely be something for another PR though.
Also - i never really understood the swap_keys
stuff which is now commented out.
ya, it seemed smaller to me but then when I got into it took a bit more.
Pretty much
Yup, as of now, there is an issue open talking if we should allow a ckg, but as of now dkg only
This all makes sense to me, wanna make a card for this in the projects board and feel free to take it on
Yup, I made a card to fix this, bogdan has an example of how it can be done in his tests in synedrion, just the PR is taking too long and blocking ppl, so It is in a refactor card, it would also help a lot when we add a proactive refresh
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple nits about code style and naming but otherwise lgtm.
Adds DKG to user signup, removing the CKG
Considerations for future PRs (there are task cards made)