Keep signing under the current group key after a failed DKG round
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- rust
- Domain
- cryptography
Research direction
Start with the coordinator paths start_public_shares and dkg_end_gathered, then inspect Signer::reset, dkg_ended, nonce_request and sign_share_request to trace how key state and round IDs are used. The issue describes atomic replacement on successful DKG as the proposed behavior; completion means a failed re-keying leaves signing with the previous key usable, with coverage for both coordinators and the signer.
Written by the indexing model from the issue text.
Description
Problem
A failed re-keying currently turns into a signing outage, in both coordinators and in the signer. GHSA-whwx-jj37-4gg5 states this as a limitation of 15.0.1 ("Signing under an existing group key after a failed re-keying is not supported"); this issue is the fix.
Three places are involved:
- Coordinators.
start_public_sharesclearsparty_polynomialsat round start, and the map is only rebuilt indkg_end_gatheredon success (FIRE) or, for FROST, from receipt-time inserts. After a failed round the map no longer matchesaggregate_public_key, which is never cleared. FROST then aggregates against the wrong polynomials; FIRE reportsBadPartySigsnaming honest parties (measured). - Signer gate.
Signer::resetonDkgBeginsetsdkg_completed = false, and only a successfuldkg_endedsets it back;nonce_requestandsign_share_requestreturn nothing while it is false. The signer's key shares survive the reset, so it could sign, but the gate stops it. - Signer round id. Signing requests are checked against the single
dkg_idthatresetjust overwrote, so even without the gate a request for the previous key would be rejected.
Proposed semantics
Key material is replaced atomically and only on success. The coordinator builds the new round's map in a pending field and swaps map and aggregate key together in dkg_end_gathered; the signer keeps its completed shares, group key and completed flag until its own dkg_ended succeeds, and tracks the id of the round in progress separately from the id it signs under. A round that fails leaves the previous key fully usable.
If instead signing after a failed re-keying is declared unsupported, the minimum is to clear aggregate_public_key in start_public_shares so start_signing_round fails with MissingAggregatePublicKey rather than aggregating against a stale map.
Notes
- Interacts with the repeated-DKG stall (separate issue): a coordinator that cannot run a second DKG cannot re-key at all.
- Breaking: state-machine behaviour and
SavedStateshape. 16.0.0.
- Dominant language
- Rust
- Stars
- 34
- Forks
- 19
- Avg merge
- 9h 19m
- Merged PRs (30d)
- 12
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from xoloki/wsts
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
xoloki/wsts#256 · 3 comments ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
marketing
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
difficulty: easy docs help wanted tooling
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
-
bug help wanted ui
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
userFRM/egui-charts#4386 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
eliasstravik/herdr-projects#1605 · 1 comment ·