Commit c0202f8
feat(frost): conclude the signing done check on the t-subset (7.3 t-of-included PR3/3)
Under RFC-21 Phase 7.3 t-of-included finalize (PR2 #4093), an interactive
signing attempt is signed by the first t responsive committers of an
(optionally) oversized included set. The members the coordinator did not pick,
plus any offline ones, may never broadcast a signing done check, so the outer
done check - which required a confirmation from EVERY attempt member - would
hang an otherwise-successful attempt to its timeout and force a needless retry.
Make signingDoneCheck conclude on the first t (honestThreshold) matching done
checks instead of all attempt members:
- newSigningDoneCheck takes honestThreshold; listen sets
requiredDoneCount = min(honestThreshold, len(attemptMembersIndexes)).
- waitUntilAllDone completes when len(doneSigners) >= requiredDoneCount (>= not
==: an oversized set may have more than t online members report done), with a
requiredDoneCount > 0 guard against the pre-listen state.
INERT until participant selection oversizes the included set past the threshold:
today the selector trims to exactly honestThreshold, so attemptMembersIndexes ==
threshold and requiredDoneCount == the attempt member count - identical to the
previous all-members rule. The coarse path is unchanged.
Added TestSigningDoneCheck_ThresholdSubsetConcludes (oversized included set, only
t members report done -> concludes with the signature instead of timing out).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 80cf249 commit c0202f8
3 files changed
Lines changed: 105 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
| 376 | + | |
376 | 377 | | |
377 | 378 | | |
378 | 379 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
58 | 67 | | |
59 | 68 | | |
60 | 69 | | |
61 | 70 | | |
| 71 | + | |
62 | 72 | | |
63 | 73 | | |
64 | 74 | | |
65 | 75 | | |
66 | 76 | | |
| 77 | + | |
67 | 78 | | |
68 | 79 | | |
69 | 80 | | |
| |||
91 | 102 | | |
92 | 103 | | |
93 | 104 | | |
94 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
95 | 115 | | |
96 | 116 | | |
97 | 117 | | |
| |||
171 | 191 | | |
172 | 192 | | |
173 | 193 | | |
174 | | - | |
175 | | - | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
176 | 202 | | |
177 | 203 | | |
178 | 204 | | |
| |||
262 | 288 | | |
263 | 289 | | |
264 | 290 | | |
265 | | - | |
| 291 | + | |
266 | 292 | | |
267 | 293 | | |
268 | 294 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
284 | 350 | | |
285 | 351 | | |
286 | 352 | | |
287 | 353 | | |
| 354 | + | |
288 | 355 | | |
289 | 356 | | |
290 | 357 | | |
291 | 358 | | |
292 | 359 | | |
293 | | - | |
| 360 | + | |
294 | 361 | | |
295 | 362 | | |
296 | 363 | | |
| |||
341 | 408 | | |
342 | 409 | | |
343 | 410 | | |
| 411 | + | |
344 | 412 | | |
345 | 413 | | |
346 | 414 | | |
| |||
0 commit comments