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

feat: CRP-2611 Introduce new context type for VetKD requests #2629

Merged
merged 22 commits into from
Nov 22, 2024

Conversation

eichhorl
Copy link
Contributor

@eichhorl eichhorl commented Nov 15, 2024

We extend the existing SignWithThresholdContext by adding another ThresholdArguments variant of type VetKdArguments. Contexts of this type cannot be created yet.

In addition, the compiler forces us to define a cycles cost for vet KD requests. For now we choose the same cost as for tEcdsa and tSchnorr, but this may be refined further at a later stage.

There are some parts in consensus where we only want to handle tSchnorr and tEcdsa contexts (as they rely on IDKG), but ignore vet KD contexts (as they rely on NiDKG). For that reason we add a new type IDkgSignWithThresholdContext which wraps the reference to a SignWithThresholdContext, but only if that context may be handled by IDKG. Functions in the IDKG component are then changed to accept the new type.

@github-actions github-actions bot added the feat label Nov 15, 2024
@eichhorl eichhorl changed the title feat: vetkd context feat: CRP-2641 CRP-2615 Add vetKeys related management canister endpoints Nov 18, 2024
@eichhorl eichhorl changed the title feat: CRP-2641 CRP-2615 Add vetKeys related management canister endpoints feat: contexts Nov 18, 2024
@eichhorl eichhorl changed the title feat: contexts feat: CRP-2611 Introduce new context type for VetKD requests Nov 18, 2024
@eichhorl eichhorl marked this pull request as ready for review November 18, 2024 15:22
@eichhorl eichhorl requested review from a team as code owners November 18, 2024 15:22
maksymar
maksymar previously approved these changes Nov 19, 2024
fspreiss
fspreiss previously approved these changes Nov 19, 2024
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, @eichhorl! LGTM!

Sawchord
Sawchord previously approved these changes Nov 20, 2024
Copy link
Contributor

@Sawchord Sawchord left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

rs/consensus/src/idkg/signer.rs Show resolved Hide resolved
rs/consensus/src/idkg/test_utils.rs Show resolved Hide resolved
rs/consensus/src/idkg/payload_verifier.rs Show resolved Hide resolved
@eichhorl eichhorl added this pull request to the merge queue Nov 22, 2024
Merged via the queue into master with commit e3540ad Nov 22, 2024
29 checks passed
@eichhorl eichhorl deleted the eichhorl/vetkd-context branch November 22, 2024 12:07
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.

5 participants