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

[draft] Handover Protocol #198

Draft
wants to merge 49 commits into
base: rocknroll
Choose a base branch
from
Draft

[draft] Handover Protocol #198

wants to merge 49 commits into from

Conversation

cygnusv
Copy link
Member

@cygnusv cygnusv commented Feb 18, 2025

Type of PR:

  • Bugfix
  • Feature
  • Documentation
  • Refactor
  • Other

Required reviews:

How many reviews does the PR author need?

  • 1
  • 2
  • 3

What this does:

High-level idea of the changes introduced in this PR.
List relevant API changes (if any), as well as related PRs and issues.

Issues fixed/closed:

  • Fixes #...

Why it's needed:

Explain how this PR fits in the greater context of the NuCypher Network.
E.g., if this PR address a nucypher/productdev issue, let reviewers know!

Notes for reviewers:

What should reviewers focus on?
Is there a particular commit/function/section of your PR that requires more attention from reviewers?

cygnusv and others added 30 commits February 14, 2025 11:06
…nding

Or more correctly, the problem must be we're not unblinding shares in tests. This makes sense because the new verifiability features for updates were designed to work on top of blinded shares, and these tests were written for the previous share update code
For the moment, just validating share update commitments
* For refresh: C_0 == 1,
* For recovery at root t: sum(r * C_i) == 1
Get rid of PrivateKeyShare and UpdatedPrivateKeyShare at the refresh level. Instead, we'll continue to deal with BlindedKeyShares, since they're semantically similar to transcripts at the pvss & dkg level
Let the refresh layer deal with private keys
Repurposed `PrivateKey.recover_share_from_updated_private_shares` code as the test function `combine_private_shares_at`, since it doesn't make sense to combine private key shares in production code.
This was meant to be a test-only function, but let's remove it to avoid misuse
For some reason, it was part of WASM bindings too
Also, no need to compute the public from from the transcripts, since we can just take it from the aggregate
Two reasons:
* We don't consider the case for num_validators != shares_num, so all the places that account for this can be refactored (see #197)
* We always need to consider the case when threshold == shares_num because some tests have failed in the past in this situation.
* PublicDecryptionContextFast was unused (we use the simple variant)
* Remove h parameter in the simple one, which has some simplifying downstream effects
HandoverTranscript, a.k.a. "The Baton", represents the message an incoming node produces to initiate a handover with an outgoing node. After the handover, the incoming node replaces the outgoing node in an existing cohort, securely obtaining a new blinded key share, but under the incoming node's private key.
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.

1 participant