Commit 8d03ef9
committed
fix(sdk-lib-mpc): re-derive dkgState from WASM bytes in restoreSession
Call _deserializeState() after _restoreSession() so dkgState is always
derived from the actual WASM bytes instead of the caller-supplied value.
When keyShareBuff is present, override state to Complete since the WASM
bytes still reflect WaitMsg4 after keyshare() frees the session.
Adds a regression test verifying tampered dkgState is ignored.
WAL-396
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
TICKET: WAL-3961 parent c21b4fc commit 8d03ef9
File tree
2 files changed
+47
-2
lines changed- modules/sdk-lib-mpc
- src/tss/ecdsa-dkls
- test/unit/tss/ecdsa
2 files changed
+47
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
| 123 | + | |
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
| |||
339 | 340 | | |
340 | 341 | | |
341 | 342 | | |
342 | | - | |
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
353 | 357 | | |
354 | 358 | | |
355 | 359 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 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 | + | |
286 | 327 | | |
287 | 328 | | |
288 | 329 | | |
| |||
0 commit comments