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

Fix bad public shares check #106

Merged
merged 1 commit into from
Dec 21, 2024
Merged

Fix bad public shares check #106

merged 1 commit into from
Dec 21, 2024

Conversation

xoloki
Copy link
Collaborator

@xoloki xoloki commented Dec 13, 2024

We saw an issue on sBTC testnet where a single signer with a bad threshold not only prevented DKG from completing, but also caused the Coordinator to think that all signers were malicious. This was because the signers were checking the threshold when evaluating DkgPublicShares, but the Coordinator was not.

To fix this, move the public shares check to common code, and call it from everywhere.

Fixes #105

@xoloki xoloki requested a review from djordon December 13, 2024 15:33
Copy link
Contributor

@djordon djordon left a comment

Choose a reason for hiding this comment

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

We should add a test here too.

@xoloki xoloki force-pushed the fix-bad-public-shares-verify branch from b545354 to b5228e8 Compare December 19, 2024 13:42
@xoloki xoloki self-assigned this Dec 19, 2024
…we check public shares

add test where one signer has incorrect threshold

use common code to check public shares
@xoloki xoloki force-pushed the fix-bad-public-shares-verify branch from b5228e8 to d9e9914 Compare December 21, 2024 13:31
@xoloki xoloki merged commit fe8869e into main Dec 21, 2024
5 checks passed
@xoloki xoloki deleted the fix-bad-public-shares-verify branch December 21, 2024 16:26
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.

Coordinator does not check threshold when verifying BadPublicShares
3 participants