Skip to content

Make helper cancellation and save-data ownership explicit - #13

Open
mswilkison wants to merge 2 commits into
devfrom
codex/helper-lifecycle
Open

mswilkison wants to merge 2 commits into
devfrom
codex/helper-lifecycle

Conversation

@mswilkison

Copy link
Copy Markdown

Allow safe-prime workers to observe cancellation during result delivery. Give ECDSA save-data subsets independent copies of Xi and ShareID, preserving nil, and report nil saved keys or missing roster content with named diagnostics. Other pre-parameter and per-party object sharing remains documented.

Adapted from public upstream commits 24bb7d379f262294cb1422532d26b77f20939ac8, 04bb840ad562822962fc87371b82e608784fbb71, and the roster guard in 16938849b0f49bf925ea3902f5fab21b9ea9904b. The nil saved-key diagnostic and focused tests are local additions.

Validation: full common, focused cancellation/ownership tests, and ecdsa/keygen excluding TestE2EConcurrentAndSaveFixtures passed. The full keygen attempt reached Go's default ten-minute timeout in that existing 20-party E2E test during proof verification. Tests used GOMAXPROCS=2 and -p 1; formatting, diff checks, and independent patch review passed.

Adapt the result handoff in common/safe_prime.go from public upstream
commit 24bb7d3.

Add bounded worker lifecycle tests for cancellation with no receiver and
a full result buffer, plus ordinary result delivery. Test cleanup drains
pending results and joins workers.
Adapt Xi and ShareID copying from public upstream commit
04bb840 and the roster-content guard
from 1693884, limited to
ecdsa/keygen/save_data.go.

Preserve nil local secrets and existing pre-parameter and per-party
pointer sharing. The nil saved-key diagnostic and focused ownership,
subset-selection, and input-guard unit tests are additions for this branch.
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.

1 participant