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

Add refresh shares with dealer functionality #665

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

natalieesk
Copy link
Contributor

This closes #245

Copy link
Contributor

@conradoplg conradoplg left a comment

Choose a reason for hiding this comment

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

I added some comments, the main one is about possibly refactoring the API.

frost-core/src/tests/refresh.rs Outdated Show resolved Hide resolved
frost-core/src/tests/refresh.rs Outdated Show resolved Hide resolved
frost-core/src/keys/refresh.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@conradoplg conradoplg left a comment

Choose a reason for hiding this comment

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

We'll need to handle the serialization issue, avoiding returning the identity element

frost-core/src/keys/refresh.rs Outdated Show resolved Hide resolved
frost-core/src/keys/refresh.rs Outdated Show resolved Hide resolved
frost-core/src/keys/refresh.rs Outdated Show resolved Hide resolved
frost-core/src/tests/refresh.rs Show resolved Hide resolved
Copy link

github-actions bot commented Jun 27, 2024

Visit the preview URL for this PR (updated for commit 1f0d92f):

https://frost-book--pr665-refresh-shares-245-2l1szvtq.web.app

(expires Wed, 24 Jul 2024 09:34:45 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: b7f43333fbf8fa5527ab3f0dd7bd10bb1fa7401c

Copy link
Contributor

@conradoplg conradoplg left a comment

Choose a reason for hiding this comment

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

Looks good, thanks! It just needs fixing CI which requires just changing the import of Vec.

I'm just not sure about the calculate_zero_key name. I don't think the user should care about the fact that involves the zero key. Maybe something like compute_refreshing_shares?

There's some places where I think we can make the code a bit clearer but I think I'll create a PR after this one merges and we can then discuss it.

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.

Feature: remove signers or refresh shares with trusted dealer
2 participants