Skip to content

wallet: set the asset version of interactive transfer outputs - #200

Merged
darioAnongba merged 2 commits into
mainfrom
darioAnongba/interactive-asset-version
Nov 13, 2026
Merged

darioAnongba merged 2 commits into
mainfrom
darioAnongba/interactive-asset-version

Conversation

@darioAnongba

Copy link
Copy Markdown
Collaborator

InteractiveTxBuilder creates the receiver's output at asset version V0, whatever the version of the asset it spends. SetAssetVersion selects V0 or V1 for that output. V0 stays the default, and Execute rejects any other value with ErrInvalidAssetVersion.

A V1 output matters for the custom-anchor flow. customanchor.ProofPath accepts an unconfirmed step only on a V1 base asset, so an asset received through an interactive transfer at V0 cannot start one. The embedded engine itests in #198 receive their asset this way and skip the proof-path check for it.

InteractiveTxBuilder.SetAssetVersion selects the asset version of the
receiver's output. The default is V0. Execute rejects an unknown
version with ErrInvalidAssetVersion.
TestInteractiveTxBuilderAssetVersion sends an interactive transfer with
a V1 receiver output. Bob imports the proof and lists the asset as V1.
The default flow asserts a V0 output.
@darioAnongba
darioAnongba merged commit ce5bfed into main Nov 13, 2026
5 checks passed
@github-project-automation github-project-automation Bot moved this from 🆕 New to ✅ Done in Taproot-Assets Project Board Nov 13, 2026
@darioAnongba
darioAnongba deleted the darioAnongba/interactive-asset-version branch November 13, 2026 17:18
@darioAnongba darioAnongba self-assigned this Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

1 participant