Skip to content

Improve code of SP stealth addresses - #3420

Merged
OmarHatem28 merged 1 commit into
v6.3.0-rcfrom
make-sp-func-not-reliant-on-output-order
Jul 20, 2026
Merged

OmarHatem28 merged 1 commit into
v6.3.0-rcfrom
make-sp-func-not-reliant-on-output-order

Conversation

@OmarHatem28

@OmarHatem28 OmarHatem28 commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

Issue Number (if Applicable): Fixes #

Description

Make the SP stealth addresses not reliant on output index

Pull Request - Checklist

  • Initial Manual Tests Passed
  • Double check modified code and verify it with the feature/task requirements
  • Format code
  • Look for code duplication
  • Clear naming for variables and methods
  • Manual tests in accessibility mode (TalkBack on Android) passed

@OmarHatem28 OmarHatem28 linked an issue Jul 20, 2026 that may be closed by this pull request
@OmarHatem28 OmarHatem28 changed the title Make stealth addresses generated from silent payment, not reliant on … Improve code of SP stealth addresses Jul 20, 2026
}).toList();
final stealthAddresses = pendingTransaction.stealthAddresses;
if (stealthAddresses.length != outputs.length) {
printV("well, that shouldn't happen");

@konstantinullrich konstantinullrich Jul 20, 2026 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

NIT: Come on :D Please improve this printV message :D

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

well it shouldn't so all good xD

@OmarHatem28
OmarHatem28 merged commit 940dfa7 into v6.3.0-rc Jul 20, 2026
5 of 6 checks passed
@OmarHatem28
OmarHatem28 deleted the make-sp-func-not-reliant-on-output-order branch July 20, 2026 10:39
OmarHatem28 added a commit that referenced this pull request Jul 21, 2026
* v6.3.0 Release Candidate
- the new transaction history
- Radar in Apps screen
- Zcash update
- Flutter update
- Parts of the Refactor
  should improve how amounts are handled in the app and fix any issue with amounts
  improve handling sending to aliases

- Improvements for Cake Pay mobile
- Bug fixes

* don't use memo for note/message values

* save message in QR locally in the notes field

* Make stealth addresses generated from silent payment, not reliant on output index (#3420)

* - fix swaps showing only on primary account
- switch tron default node
- privacy fixes

* - enlarge destination tag and make it copiable
- migrate users on hashvault
- minor fix
OmarHatem28 added a commit that referenced this pull request Jul 26, 2026
* Shuffle change output on hardware wallet sends

Hardware wallet BTC/LTC sends passed outputs to the PSBT/device in the
given order (change last), a position fingerprint. The outputOrdering
param was plumbed but ignored. Add orderOutputs() and apply it in both
buildHardwareWalletTransaction paths; set the send call site to shuffle.

Refs #3376 (the software send + RBF paths were covered by #3420).

* Shuffle change output on Bitcoin Cash sends

The BCH send path built via ForkedTransactionBuilder with
outputOrdering: none, leaving change deterministically last. The builder
shuffles natively and change is found by isChange, not position, so flip
it to shuffle (matches the BTC software path from #3420).

Refs #3376.

* Update cw_bitcoin/lib/electrum_wallet.dart

Co-authored-by: Omar Hatem <[email protected]>

---------

Co-authored-by: Omar Hatem <[email protected]>
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.

Bitcoin sends place change output deterministically last

2 participants