Bitcoin DeFi (BTCFi) Auditing Is Its Own Discipline
summary
Maps concrete differences: PSBT sighash modes let one signer fix payment but leave other outputs editable so a marketplace seller signature using SINGLE plus ANYONECANPAY allows an attacker to reuse that signature, add funds, and redirect the token delivery output, enabling BRC‑20 sniping. Audits show ownership is about UTXO versus asset ownership, Taproot lets a hidden Taproot key-path bypass staking scripts, and confirmation‑window races let refunds beat cross‑chain claims. The talk documents the exact transaction shapes, signature coverage bits, and a real marketplace exploit.
AI-written summary · about
chapters (10)
- 0:00Introduction to BTCFi auditing
- 0:23What is Bitcoin DeFi
- 1:49Bitcoin script and spending conditions
- 3:11Programmable layers in BTCFi
- 4:17PSBT signing workflow
- 5:41Indexers and asset ownership
- 6:51Common BTCFi attack vectors
- 11:56Case study BTC orders sniping
- 13:44Auditing checklist and resources
- 14:25Q&A and closing
