Skip to content

New Feature swap op_return - #2417

Closed
juanky201271 wants to merge 12 commits into
devfrom
feature/swap-op-return
Closed

New Feature swap op_return#2417
juanky201271 wants to merge 12 commits into
devfrom
feature/swap-op-return

Conversation

@juanky201271

Copy link
Copy Markdown
Contributor

Fixes:

Comment thread zingolib/src/lightclient/propose.rs Outdated
@zancas

zancas commented Jul 23, 2026

Copy link
Copy Markdown
Member

Superseded by the owned-spend-pipeline arc: ADR 0010 (PR #2469) routes OP_RETURN through the in-tree proposal types, and the zcb-swap approach this branch took was abandoned with that decision.

@zancas zancas closed this Jul 23, 2026
juanky201271 added a commit that referenced this pull request Aug 15, 2026
Mayachain and THORChain read a swap's refund destination from the
inbound transaction's origin. A shielded spend exposes none, so a
deposit paid straight from a note leaves the protocol with nowhere to
return a failed swap's funds.

`route_via_ephemeral` sends an ordinary transparent recipient down the
exposure step that TEX addresses already take: the value moves shielded
-> wallet ephemeral t-addr -> vault, and the transaction that pays the
vault now has an origin the wallet controls. The OP_RETURN memo naming
the swap already rides that same exposure step, so both halves of what
the protocols need arrive together.

The flag stops at the plan layer. Nothing downstream distinguishes this
from a TEX flow, because structurally it is one. Send-all and the
fee-sizing probes stay single-hop: no vault reads their origin.

The closed PR #2417 carried this as a parameter to a forked
zcash_client_backend. The in-tree pipeline owns the ZIP 320 split, so
it is a routing decision here instead.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.

3 participants