Skip to content

allow to send sub-dust amounts in offchain transactions #592

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 2, 2025

Conversation

louisinger
Copy link
Collaborator

This PR is handling sub-dust vtxo so that the server can treat them as expired VTXOs.

Sub-dust output are OP_RETURN output. These output types can be added to any offchain transactions.

sub-dust offchain tx output pkscript

// unspendable "burn" output
OP_RETURN <x_only_tapkey>

Because they are OP_RETURN, they can't be spent again in another offchain tx. However, they can be registered in a settlement via BIP322 intent. To make the intent signature "standard" the OP_RETURN is replaced by OP_1 :

sub-dust intent input pkscript

// taproot output script
OP_1 <x_only_tapkey>

Thus, signing a subdust vtxo = signing a non-dust vtxo.
The sub-dust VTXOs can't be exited unilaterally, so they do not require forfeit transactions.

it closes #479

@altafan @Kukks please review

@louisinger louisinger requested a review from altafan June 2, 2025 11:50
@altafan altafan merged commit 7eab8b5 into arkade-os:next-version Jun 2, 2025
5 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.

2 participants