Skip to content

Shuffle output order on bitcoin sends#3377

Open
bc1cindy wants to merge 1 commit into
cake-tech:devfrom
bc1cindy:fix/output-ordering-shuffle
Open

Shuffle output order on bitcoin sends#3377
bc1cindy wants to merge 1 commit into
cake-tech:devfrom
bc1cindy:fix/output-ordering-shuffle

Conversation

@bc1cindy

@bc1cindy bc1cindy commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

change was placed deterministically last (BitcoinOrdering.none), identifiable by position. Switch the two on-chain builders (main + RBF) to BitcoinOrdering.shuffle. Change is found by isChange, not position.

ref: payjoin/rust-payjoin#1597 (comment)

closes #3376

@bc1cindy bc1cindy force-pushed the fix/output-ordering-shuffle branch from fa0c336 to 720e709 Compare July 7, 2026 18:02
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

1 participant