Skip to content

fix(sdk-core): preserve tss build params after presign#8890

Merged
vibhavgo merged 1 commit into
masterfrom
WCI-505
May 29, 2026
Merged

fix(sdk-core): preserve tss build params after presign#8890
vibhavgo merged 1 commit into
masterfrom
WCI-505

Conversation

@vibhavgo
Copy link
Copy Markdown
Contributor

Description

Preserve txPrebuild.buildParams across TSS presign flows in sdk-core.

Some coin level presignTransaction implementations can replace txPrebuild before TSS signing. For TSS wallets, buildParams carries SDK-local transaction intent metadata such as recipients and transaction type. If that metadata is dropped, downstream TSS signing and verification can receive empty or missing txParams, causing transaction verification failures.

This was observed in the EdDSA MPCv2 Solana signing path. Solana’s presign flow can refresh the txPrebuild from the tx request and drop SDK-local buildParams. EdDSA MPCv2 then performs TSS signing with those missing params, which can cause recipient verification to fail before the transaction reaches the intended signing path.

This change restores the original txPrebuild.buildParams after presign when the presigned TSS prebuild omits them.

Issue Number

WCI-505

Type of change

  • Bug fix (non-breaking change which fixes an issue)

@vibhavgo vibhavgo requested review from a team as code owners May 29, 2026 05:46
@vibhavgo vibhavgo requested review from pranavjain97 and ranga-r2 May 29, 2026 05:46
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 29, 2026

WCI-505

TSS signing relies on txPrebuild.buildParams to carry SDK transaction intent into signing.
Some presign hooks replace txPrebuild and can drop that metadata before TSS verification.

- Restore buildParams after TSS presign when the presigned prebuild omits them.
- Add a wallet unit test covering a presign hook that replaces txPrebuild.

Ticket: WCI-505
Copy link
Copy Markdown
Contributor

@kisslove-dewangan kisslove-dewangan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@vibhavgo vibhavgo merged commit 2866dd5 into master May 29, 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