Skip to content

Conversation

@danielpeng1
Copy link
Contributor

@danielpeng1 danielpeng1 commented Oct 14, 2025

Replace generic Error throws with TxIntentMismatchError in verifyTransaction methods for Bitcoin and other UTXO & EthLike coins to provide more specific error handling for suspicious transaction detection.

  • Updated UTXO verifyTransaction methods
  • Updated EthLike verifyTransaction methods

Open to comments relating to copy or if I've missed any generic error.

Ticket: WP-6189

@danielpeng1 danielpeng1 self-assigned this Oct 14, 2025
@danielpeng1 danielpeng1 marked this pull request as ready for review October 14, 2025 17:36
@danielpeng1 danielpeng1 requested review from a team as code owners October 14, 2025 17:36
Copy link

@yarikpopov164 yarikpopov164 left a comment

Choose a reason for hiding this comment

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

Not sure if this task can be done before the #7148 is merged

lcovar
lcovar previously approved these changes Oct 14, 2025
@danielpeng1 danielpeng1 force-pushed the WP-6189/introduce-suspicious-transaction-errors branch from 84a5fa8 to 4714aa6 Compare October 16, 2025 17:00
@danielpeng1 danielpeng1 force-pushed the WP-6189/introduce-suspicious-transaction-errors branch from 83c2b6d to b05154e Compare October 16, 2025 19:42
@danielpeng1 danielpeng1 force-pushed the WP-6189/introduce-suspicious-transaction-errors branch from b05154e to 4ed51a7 Compare October 17, 2025 15:52
@optimizedalgo optimizedalgo removed their request for review October 17, 2025 17:26
lcovar
lcovar previously approved these changes Oct 17, 2025
@danielpeng1 danielpeng1 force-pushed the WP-6189/introduce-suspicious-transaction-errors branch from 4ed51a7 to 6e7a8b7 Compare October 20, 2025 17:38
@lcovar lcovar force-pushed the WP-6189/introduce-suspicious-transaction-errors branch from 7780623 to ba77be2 Compare October 21, 2025 19:30
@lcovar lcovar force-pushed the WP-6189/introduce-suspicious-transaction-errors branch 2 times, most recently from 6be4d8d to 28a7df1 Compare October 21, 2025 19:34
lcovar and others added 2 commits October 21, 2025 12:35
Replace custom validation errors with SDK's TxIntentMismatchRecipientError to
provide more detailed information about mismatched transaction outputs. This
enhances error reporting by including specific details about missing or
unexpected outputs, helping users understand what differs between their intent
and the actual transaction.

Co-authored-by: llm-git <llm-git@ttll.de>

Ticket: BTC-2579

TICKET: WP-6189
@lcovar lcovar force-pushed the WP-6189/introduce-suspicious-transaction-errors branch from 28a7df1 to 3a9d500 Compare October 21, 2025 19:35
@danielpeng1 danielpeng1 merged commit 1871849 into master Oct 23, 2025
13 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.

5 participants