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

frost-client: fix error if there is no self contact #437

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

conradoplg
Copy link
Contributor

While documenting the demo I found a bug; if you initialize fresh configs and run the DKG, it would fail, because it does not create a "self contact (i.e. a contact with your own public key), unlike what trusted-dealer does.

I think trusted-dealer is wrong (but it's harmless) and a "self contact" should not be required. This changes contact_by_pubkey() to also search for the self pubkey. It puts an empty as the string, which is harmless enough (it makes an empty string appear in frost-client sessions for example, which we could handle better later).

@conradoplg conradoplg requested a review from natalieesk January 18, 2025 01:10
@mpguerra mpguerra linked an issue Jan 20, 2025 that may be closed by this pull request
Copy link
Contributor

@natalieesk natalieesk left a comment

Choose a reason for hiding this comment

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

All good

@natalieesk natalieesk merged commit c2eb29a into main Jan 22, 2025
5 checks passed
@natalieesk natalieesk deleted the self-pubkey-bug branch January 22, 2025 16:15
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.

FROST for Zcash demo and community call
2 participants