Skip to content

feat: add eddsa mpcv2 signing handler in awm - #277

Open
vibhavgo wants to merge 1 commit into
masterfrom
WCI-922-eddsa-mpcv2-signing-handler
Open

vibhavgo wants to merge 1 commit into
masterfrom
WCI-922-eddsa-mpcv2-signing-handler

Conversation

@vibhavgo

@vibhavgo vibhavgo commented Oct 9, 2026

Copy link
Copy Markdown

Summary

Add handleEddsaMPCv2Signing() to src/advancedWalletManager/handlers/ecdsaEddsaSignTransaction.ts, mirroring the existing ECDSA MPCv2 handler pattern but backed by EddsaMPCv2Utils from @bitgo-beta/sdk-core.

  • Route mpcv2round1/mpcv2round2/mpcv2round3 share types on EdDSA coins (getMPCAlgorithm() === 'eddsa') to the new handler in signMpcTransaction()
  • Round 1 generates a data key and returns encryptedDataKey; rounds 2/3 validate the required encrypted state and decrypt the data key before delegating to the SDK
  • EdDSA MPCv1 (commitment/r/g) and ECDSA paths are unchanged
  • All crypto/GPG handling stays encapsulated in EddsaMPCv2Utils

Testing

  • New EdDSA MPCv2 Signing Integration Tests describe in signMpcTransaction.test.ts: round 1/2/3 success paths (key-provider nocks + SDK stubs, response field assertions incl. encryptedDataKey) and missing-field validation failures for rounds 2/3
  • Full signMpcTransaction.test.ts: 444 passing, 0 failing (baseline 439 + 5 new)

Ticket: WCI-922
Linear: https://linear.app/bitgo/issue/WCI-922

Add handleEddsaMPCv2Signing() to ecdsaEddsaSignTransaction.ts, mirroring
the ECDSA MPCv2 handler pattern with EddsaMPCv2Utils from sdk-core.
Route mpcv2round1/2/3 share types on EdDSA coins to the new handler in
signMpcTransaction(); keep MPCv1 commitment/r/g and ECDSA paths unchanged.
Crypto and GPG handling stay encapsulated in EddsaMPCv2Utils.

Ticket: WCI-922
@linear-code

linear-code Bot commented Oct 9, 2026

Copy link
Copy Markdown

WCI-922

@vibhavgo
vibhavgo marked this pull request as ready for review October 9, 2026 08:34
@vibhavgo
vibhavgo requested review from a team as code owners October 9, 2026 08:34
@vibhavgo
vibhavgo enabled auto-merge October 9, 2026 08:35

This branch has not been deployed

No deployments
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