-
Notifications
You must be signed in to change notification settings - Fork 668
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
Nakamoto Signer[3.0] - A signer must be able to save multiple DKG aggregate key round states and load it where appropriate #4654
Comments
Implementation note: We need to ensure the structure we store in StackerDB has a bounded size as discussed here #4659 (comment) |
So I'm working on an integration test for this, and I suspect that this scenario is not attainable in the current implementation. If the threshold has been reached, the vote has been concluded and the approved key must be set in the contract. This is happening in the same transaction, so there shouldn't exist an intermediate inconsistent state as I Has this scenario been observed in practice? Am I missing something here? Ping @jferrant That being said, I still think the feature of storing a few previous aggregate keys makes sense. There could potentially be other scenarios where a redundant DKG round is triggered. I'll see if I can figure out any good scenario to test. |
Closing this ticket given that the premise has been invalidated, and recent discussions have lead to a different direction in the signer development. |
We deprioritized this for a later time, is this still needed for when we kick off the WSTS work? |
See:
stacks-core/stacks-signer/src/signer.rs
Line 1372 in 5d2cbdd
If signers see that a threshold has been reached and no approved key set, they may trigger a new DKG round. However, the key could have been approved but not yet set in the contract and this new round should be aborted once they read that it is actually set in the contract. However, they must also load the appropriate DKG shares associated with this successful round to successfully participate.
As part of this ticket, store DKG private shares per round.
If DKG is set in the contract, abort any ongoing rounds and update state.
The text was updated successfully, but these errors were encountered: