Skip to content

Conversation

@danielpeng1
Copy link
Contributor

@danielpeng1 danielpeng1 commented Sep 18, 2025

Description:

  • Reordered + refactored transaction prebuild validation to occur after keychain retrieval, ensuring verifyTransaction has access to required keychain data for proper spoofing protection (for both consolidate and fanout)
  • Added unit test for consolidate unspent management spoofability protection in test/btc.ts (for UTXO coins)
  • Verifies that platform responses are validated against user parameters and covers BUILD_SIGN_SEND flow

Ticket: WP-5945

kamleshmugdiya

This comment was marked as duplicate.

Copy link
Contributor

@kamleshmugdiya kamleshmugdiya left a comment

Choose a reason for hiding this comment

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

can do this in parallel using Promise.all

@danielpeng1 danielpeng1 force-pushed the WP-5945/sdk-unspent-management-validation branch from 8e9949b to 7300cc0 Compare September 18, 2025 16:51
@danielpeng1 danielpeng1 requested a review from a team as a code owner September 18, 2025 20:22
nvjsr
nvjsr previously approved these changes Sep 19, 2025
Copy link
Contributor

@nvjsr nvjsr left a comment

Choose a reason for hiding this comment

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

LGTM

…agement

- Add test case for fanout spoofing detection in btc.ts

Ticket WP-5955

TICKET: WP-5955
move require getDefaultWalletKeys, toKeychainObjects to top

TICKET: WP-5955
Copy link
Contributor

@lokesh-bitgo lokesh-bitgo left a comment

Choose a reason for hiding this comment

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

Looks good

@danielpeng1 danielpeng1 merged commit e190bc0 into master Sep 26, 2025
24 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.

8 participants