-
Notifications
You must be signed in to change notification settings - Fork 325
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
chore(CRP-2617): Generalize CUP’s ChainKeyInitialization #2337
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sawchord
changed the title
Leon/transcripts in cup
chore(CRP-2617): Generalize CUP’s ChainKeyInitialization incl. migration
Oct 30, 2024
Sawchord
changed the title
chore(CRP-2617): Generalize CUP’s ChainKeyInitialization incl. migration
chore(CRP-2617): Generalize CUP’s ChainKeyInitialization
Oct 31, 2024
fspreiss
reviewed
Oct 31, 2024
aterga
reviewed
Nov 1, 2024
eichhorl
approved these changes
Nov 1, 2024
aterga
reviewed
Nov 4, 2024
Co-authored-by: Arshavir Ter-Gabrielyan <[email protected]>
fspreiss
approved these changes
Nov 6, 2024
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.
Thanks for addressing my comments, @Sawchord! Also looks good from my side.
aterga
approved these changes
Nov 6, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR extends the
ChainKeyInitialization
with a variant forInitialNiDkgTranscriptRecord
. This is needed to support subnets with VetKeys.Note on compatibility:
We are moving a single field of
ChainKeyInitialization
into aoneof
, that has another variant.Since
oneof
s in Protobuf are simply invariants that checks that only one of the specified fields is populated, this does not change the wire representation of this type, if theinitialization
is of variantdealings
(See protobuf language guide).This code then simply adapts the client code (NNS registry and consensus) to reflect the changes. Since we don't introduce any code that creates the newly introduced
transcript
variant, this code does not introduce incompatibilities, so no migration code is necessary.The changes for the registry that make use of the new
transcript
variant are planned in a later PR, but a number of pieces have to be in place first, such as the management endpoints and the consensus code.