feat(wasm-mps): add ed25519_dkg_round0_import for MPCv1 → MPCv2 EdDSA retrofit - #351
Open
Marzooqa wants to merge 1 commit into
Conversation
Marzooqa
force-pushed
the
marzooqakather498/wci-1217-featwasm-mps-add-ed25519_dkg_round0_import-for-mpcv1-mpcv2
branch
from
August 4, 2026 13:22
028de75 to
d25db68
Compare
Marzooqa
force-pushed
the
marzooqakather498/wci-1217-featwasm-mps-add-ed25519_dkg_round0_import-for-mpcv1-mpcv2
branch
from
August 4, 2026 13:23
d25db68 to
c913956
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ed25519_dkg_round0_importRust function, internal generic implementation, and#[wasm_bindgen]WASM bindingKeyRefreshData::make_refresh_data_migrateto inject an existing MPCv1 additive scalar (pShare.u), aggregate public key (pShare.y), and chain code (pShare.chaincode) into the DKG protocol — enabling key re-sharing without generating a new keyed25519_dkg_round1_process) and Round 2 (ed25519_dkg_round2_process) are completely unchangeddkg_importdescribe block following the existing round-by-roundbefore+itpatternTest plan
it("performs round 0 import")— output has correctmps-ed25519-dkg-round1-message$/state$prefixesit("performs round 1")— output has correctmps-ed25519-dkg-round2-message$/state$prefixesit("performs round 2")— all parties agree onpk;pk === expected_pk;chaincode === chain_codeit("signing round-trip at root path verifies against expected_pk")— both parties' signatures verify via libsodiumit("signing round-trip at derived path m/0 produces a valid signature")— 64-byte signatures, both parties identicalit("rejects mismatched expected_pk")— wrong pk causes protocol failure at round 2Closes WCI-1217
🤖 Generated with Claude Code