Skip to content

Add 0-value P2A output to offchain transactions #566

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 13 commits into from
May 21, 2025

Conversation

louisinger
Copy link
Collaborator

@louisinger louisinger commented May 20, 2025

This PR adds P2A to vtxo tree transactions and redeem txs. It breaks the "react to fraud" system, waiting for checkpoint (#491) to be implemented.

Remove min-relay-fee

Migrating to transaction version 3 allows to remove the min-relay-fee everywhere in the vtxo tree and ark transaction. It means no more fee estimation while building the tree or an offchain payment.

Pay to anchor bump

Because every VTXO and batch output is locked by relative CSV locktime, we need a 0-value P2A output in every transactions.

Unilateral exit UX

Bitcoin 0.29 allows broadcasting a package with the 1C1P limitation. It implies change in the unilateral exit because ark redeem --force has to be called X times, where "X" is the number of transactions to put on chain.

Bumping the anchor also requires onchain funds, that's why a simple P2TR account has been added to the CLI.

it closes #215
It closes #438

@altafan @Kukks please review

@louisinger louisinger changed the base branch from master to next-version May 20, 2025 10:35
@louisinger louisinger requested a review from altafan May 20, 2025 10:39
@louisinger louisinger requested a review from altafan May 21, 2025 14:29
@altafan altafan merged commit 6246f89 into arkade-os:next-version May 21, 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.

Add anchor outputs in TxBuilder
2 participants