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

chore(CRP-2617): Generalize CUP’s ChainKeyInitialization #2337

Merged
merged 7 commits into from
Nov 6, 2024

Conversation

Sawchord
Copy link
Contributor

@Sawchord Sawchord commented Oct 30, 2024

This PR extends the ChainKeyInitialization with a variant for InitialNiDkgTranscriptRecord. This is needed to support subnets with VetKeys.

Note on compatibility:
We are moving a single field of ChainKeyInitialization into a oneof, that has another variant.
Since oneofs 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 the initialization is of variant dealings (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.

@Sawchord Sawchord changed the title Leon/transcripts in cup chore(CRP-2617): Generalize CUP’s ChainKeyInitialization incl. migration Oct 30, 2024
@github-actions github-actions bot added the chore label Oct 30, 2024
@Sawchord Sawchord changed the title chore(CRP-2617): Generalize CUP’s ChainKeyInitialization incl. migration chore(CRP-2617): Generalize CUP’s ChainKeyInitialization Oct 31, 2024
@Sawchord Sawchord marked this pull request as ready for review October 31, 2024 13:31
@Sawchord Sawchord requested review from a team as code owners October 31, 2024 13:31
rs/consensus/src/idkg/utils.rs Show resolved Hide resolved
@Sawchord Sawchord requested a review from aterga November 4, 2024 14:17
@Sawchord Sawchord requested a review from aterga November 5, 2024 15:04
Copy link
Member

@fspreiss fspreiss left a 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.

@Sawchord Sawchord enabled auto-merge November 6, 2024 14:37
@Sawchord Sawchord added this pull request to the merge queue Nov 6, 2024
Merged via the queue into master with commit 44095f2 Nov 6, 2024
24 checks passed
@Sawchord Sawchord deleted the leon/transcripts_in_cup branch November 6, 2024 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants