Skip to content

fix(sdk-lib-mpc): add keyShare to EdDSA MPCv2 getReducedKeyShare#8746

Merged
Marzooqa merged 1 commit into
masterfrom
WCI-385/fix-eddsa-mpcv2-get-reduced-key-share
May 12, 2026
Merged

fix(sdk-lib-mpc): add keyShare to EdDSA MPCv2 getReducedKeyShare#8746
Marzooqa merged 1 commit into
masterfrom
WCI-385/fix-eddsa-mpcv2-get-reduced-key-share

Conversation

@Marzooqa
Copy link
Copy Markdown
Contributor

getReducedKeyShare() was only serialising sharePk (the 32-byte public key) into the CBOR keycard payload, silently discarding the opaque WASM signing key share and chain code. Recovery signing via DSG requires the full keyShare buffer as input to ed25519_dsg_round0_process, making the old format unusable for SDK-local hot-wallet recovery.

ReducedKeyShareType now includes keyShare, pub, and rootChainCode, matching the pattern of ECDSA MPCv2's ReducedKeyShare. Tests updated to assert all three fields are present and correct.

Ticket: WCI-385

getReducedKeyShare() was only serialising sharePk (the 32-byte public key)
into the CBOR keycard payload, silently discarding the opaque WASM signing
key share and chain code. Recovery signing via DSG requires the full keyShare
buffer as input to ed25519_dsg_round0_process, making the old format unusable
for SDK-local hot-wallet recovery.

ReducedKeyShareType now includes keyShare, pub, and rootChainCode, matching
the pattern of ECDSA MPCv2's ReducedKeyShare. Tests updated to assert all
three fields are present and correct.

Ticket: WCI-385
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 12, 2026

WCI-385

@Marzooqa Marzooqa marked this pull request as ready for review May 12, 2026 12:37
@Marzooqa Marzooqa requested review from a team as code owners May 12, 2026 12:37
@Marzooqa Marzooqa merged commit 5cd3ade into master May 12, 2026
22 checks passed
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.

2 participants