Connecting Bitcoin Payment Layers
summary
Workshop shows code that creates Taproot atomic swaps via an HTTP API, generates a random preimage hash, posts swap parameters, listens for websocket lifecycle updates (created, invoice_settled, transaction_mempool), parses the lockup tx to find the swap output, builds a cooperative claim TX using an MuSig2 aggregated key, requests a partial signature from the API, aggregates signatures, and broadcasts the sweep; demo runs end-to-end and fallback on-chain scripts handle uncooperative counterparties.
AI-written summary · about
chapters (18)
- 0:00Bitcoin payment layers intro
- 1:05Swap with Taproot creation
- 3:14Setting up a multisig and tweaking keys
- 5:22Locking coins in swap
- 6:49Cooperative claim transaction
- 8:51Partial signature signing
- 10:37Signature aggregation and broadcast
- 13:49Flow between Bitcoin layers
- 14:46Privacy of key path spends
- 16:20Rootstock privacy challenges
- 18:42Handling uncooperative offline
- 20:06Taproot swap cost
- 21:08Beyond Bitcoin to assets
- 22:13Batching swaps for efficiency
- 24:19Production storage tips
- 25:01Integrating swaps into apps
- 26:55Wallets and commerce focus
- 27:37Closing remarks and Q&A








