Skip to content

Ben/small#490

Draft
joyqvq wants to merge 9 commits intomainfrom
ben/small
Draft

Ben/small#490
joyqvq wants to merge 9 commits intomainfrom
ben/small

Conversation

@joyqvq
Copy link
Collaborator

@joyqvq joyqvq commented Feb 26, 2026

Description

Describe the changes or additions included in this PR.

Test plan

How did you test the new or updated feature?

// Approvals count not reached, return key server back to old committee.
if (approvals.length() != committee.members.length()) {
dof::add<ID, KeyServer>(&mut old_committee.id, old_committee_id, key_server);
// TODO: just making sure - is that safe to reshare it again and again?
Copy link
Collaborator Author

@joyqvq joyqvq Feb 26, 2026

Choose a reason for hiding this comment

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

manos and reginaldo mentions that as long as it doesnt error when called in testnet, it means its fine, its probably because the version is incremented. but cc @rjs-mysten will double check this pattern since it comes as a surprise.

/// Create a key server object with df of KeyServerV2 of committee server type.

// TODO: should be private entry so we can remove it in the future?
public fun create_committee_v2(
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this needs to be called by the committee pkg. it has to be public not entry right?

/// Upgrade the current key server's to v2 by adding a df to KeyServerV2, still a single owner object.

// TODO: should be private entry so we can remove it in the future?
// TODO: how would future upgrades from v2 to v3 would look like with the committee? (e.g., if there is a bug that requires a new version)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

  1. add a public func to upgrade v2 to v3
  2. delete func create_v2,
  3. upgrade seal
  4. ask committee that depends on it to upgrade?

// - Rotation: only continuing members create a message (my_old_share is Some).
let my_message = if old_threshold.is_none() || my_old_share.is_some() {
println!("Creating DKG message for party {my_party_id}...");
// TODO: every message should use unique RO, let's use (DOMAIN_SEP, committee_id, party id)
Copy link
Collaborator Author

@joyqvq joyqvq Mar 2, 2026

Choose a reason for hiding this comment

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

@joyqvq
Copy link
Collaborator Author

joyqvq commented Mar 3, 2026

cc @benr-ml i think i addressed everything after

#492
#493

if you get a chance plz verify in case i missed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants