Skip to content
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

OOR & Vtxo transactions v3 + P2A outputs #328

Draft
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

louisinger
Copy link
Collaborator

@louisinger louisinger commented Sep 24, 2024

This PR adds anchor outputs in all VTXOs txs (including OOR). It also removes the min-relay-fee estimation thanks to tx version 3 (TRUC). it only works with bitcoin-core >= 0.28.

This change allows to totally remove the fees in VTXO transactions. However, since an anchor is required, each transaction costs 330 sats (the anchor dust value). The advantage is that this amount is constant contrary to fee estimation.

TL;DR

  • anchors are dust outputs locked by p2wsh(OP_TRUE)
  • add anchor in covenantless bitcoin vtxo tree leaves, make the tx v3, remove min-relay-fee
  • add anchor in the OOR redeem tx, make the tx v3, remove the min-relay-fee
  • add e2e test case spending the anchor after a unilateral exit

TODOs
this PR is not ready to be merged

  • GH nigiri action supporting v0.28
  • allow the ASP to bump P2A outputs while broadcasting forfeits

it closes #215

@altafan @tiero please review

@louisinger louisinger changed the title add anchor output in vtxo tree and async redeem transaction OOR & Vtxo transactions v3 + P2A outputs Nov 10, 2024
@louisinger louisinger marked this pull request as draft November 10, 2024 09:38
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