Skip to content

NUT-XX: Bitcoin External Fee - #420

Open
TheMhv wants to merge 2 commits into
cashubtc:mainfrom
TheMhv:feat/external-fee
Open

NUT-XX: Bitcoin External Fee#420
TheMhv wants to merge 2 commits into
cashubtc:mainfrom
TheMhv:feat/external-fee

Conversation

@TheMhv

@TheMhv TheMhv commented Aug 7, 2026

Copy link
Copy Markdown

Summary

Adds NUT-XX: Bitcoin External Fee, a new NUT-10 spending-condition kind (BTCFEE) that lets a sender lock eCash Proofs to whichever party successfully mines a specific Bitcoin transaction into a block.

How it works

  • The Secret (kind BTCFEE) commits to the raw transaction (data) plus optional tags: required confirmations, a refund locktime, and the refund pubkey.
  • Receiver pathway: whoever mines the transaction into a block can spend the proof by providing the block hash, a valid preimage for the hash inside scriptSig, and a Merkle proof that the transaction is included in that block's Merkle tree.
  • Sender pathway: if the transaction isn't mined before locktime expires, the original sender can reclaim the proof via a NUT-11 refund.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant